0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-03-22 12:37:01 +00:00

Merge pull request #177 from stesie/fix-vardump-test

Fix tests/var_dump.phpt
This commit is contained in:
Stefan Siegl 2015-11-28 17:31:19 +01:00
commit f73abfac62

View File

@ -138,7 +138,7 @@ static void v8js_dumper(v8::Isolate *isolate, v8::Local<v8::Value> var, int leve
V8JS_GET_CLASS_NAME(cname, object); V8JS_GET_CLASS_NAME(cname, object);
int hash = object->GetIdentityHash(); int hash = object->GetIdentityHash();
if (var->IsFunction()) if (var->IsFunction() && strcmp(ToCString(cname), "Closure") != 0)
{ {
v8::String::Utf8Value csource(object->ToString()); v8::String::Utf8Value csource(object->ToString());
php_printf("object(Closure)#%d {\n%*c%s\n", hash, level * 2 + 2, ' ', ToCString(csource)); php_printf("object(Closure)#%d {\n%*c%s\n", hash, level * 2 + 2, ' ', ToCString(csource));