Index: src/api.cc |
=================================================================== |
--- src/api.cc (revision 2503) |
+++ src/api.cc (working copy) |
@@ -2495,6 +2495,7 @@ |
// Currently internal fields are used by DOM wrappers which only |
// get garbage collected by the mark-sweep collector, so we |
// pretenure the proxy. |
+ HandleScope scope; |
i::Handle<i::Proxy> proxy = |
i::Factory::NewProxy(reinterpret_cast<i::Address>(value), i::TENURED); |
if (!proxy.is_null()) obj->SetInternalField(index, *proxy); |