Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 65b544c7919eae9cb63119d7c0131b9be357ac73..73eb61d602d3e274d2e4836237f31938bb254e77 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1540,7 +1540,7 @@ Local<Script> Script::New(v8::Handle<String> source, |
isolate->global_context(), |
NULL, |
pre_data_impl, |
- Utils::OpenHandle(*script_data), |
+ Utils::OpenHandle(*script_data, true), |
i::NOT_NATIVES_CODE); |
has_pending_exception = result.is_null(); |
EXCEPTION_BAILOUT_CHECK(isolate, Local<Script>()); |
@@ -4404,7 +4404,7 @@ Persistent<Context> v8::Context::New( |
// Create the environment. |
env = isolate->bootstrapper()->CreateEnvironment( |
isolate, |
- Utils::OpenHandle(*global_object), |
+ Utils::OpenHandle(*global_object, true), |
proxy_template, |
extensions); |
@@ -5642,7 +5642,8 @@ bool Debug::SetDebugEventListener(EventCallback that, Handle<Value> data) { |
foreign = |
isolate->factory()->NewForeign(FUNCTION_ADDR(EventCallbackWrapper)); |
} |
- isolate->debugger()->SetEventListener(foreign, Utils::OpenHandle(*data)); |
+ isolate->debugger()->SetEventListener(foreign, |
+ Utils::OpenHandle(*data, true)); |
return true; |
} |
@@ -5657,7 +5658,8 @@ bool Debug::SetDebugEventListener2(EventCallback2 that, Handle<Value> data) { |
if (that != NULL) { |
foreign = isolate->factory()->NewForeign(FUNCTION_ADDR(that)); |
} |
- isolate->debugger()->SetEventListener(foreign, Utils::OpenHandle(*data)); |
+ isolate->debugger()->SetEventListener(foreign, |
+ Utils::OpenHandle(*data, true)); |
return true; |
} |
@@ -5668,7 +5670,7 @@ bool Debug::SetDebugEventListener(v8::Handle<v8::Object> that, |
ON_BAILOUT(isolate, "v8::Debug::SetDebugEventListener()", return false); |
ENTER_V8(isolate); |
isolate->debugger()->SetEventListener(Utils::OpenHandle(*that), |
- Utils::OpenHandle(*data)); |
+ Utils::OpenHandle(*data, true)); |
return true; |
} |