Revision: 15058
Author: [email protected]
Date: Tue Jun 11 04:08:46 2013
Log: interceptor return values escape their scope
[email protected]
BUG=
Review URL: https://codereview.chromium.org/16537005
http://code.google.com/p/v8/source/detail?r=15058
Modified:
/branches/bleeding_edge/src/handles.cc
=======================================
--- /branches/bleeding_edge/src/handles.cc Mon Jun 3 08:32:22 2013
+++ /branches/bleeding_edge/src/handles.cc Tue Jun 11 04:08:46 2013
@@ -566,7 +566,8 @@
#if ENABLE_EXTRA_CHECKS
CHECK(result.IsEmpty() || v8::Utils::OpenHandle(*result)->IsJSObject());
#endif
- return result;
+ return v8::Local<v8::Array>::New(reinterpret_cast<v8::Isolate*>(isolate),
+ result);
}
@@ -591,7 +592,8 @@
#endif
}
}
- return result;
+ return v8::Local<v8::Array>::New(reinterpret_cast<v8::Isolate*>(isolate),
+ result);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.