Index: Source/bindings/v8/ScriptController.cpp |
diff --git a/Source/bindings/v8/ScriptController.cpp b/Source/bindings/v8/ScriptController.cpp |
index db933b84f093573133af1412ac2c01af40e0b1cc..031928d25d45369d9925ab5f6ba0fedbf1f9e193 100644 |
--- a/Source/bindings/v8/ScriptController.cpp |
+++ b/Source/bindings/v8/ScriptController.cpp |
@@ -325,7 +325,7 @@ v8::Local<v8::Context> ScriptController::currentWorldContext() |
return v8::Local<v8::Context>(); |
if (m_frame == frame) |
- return v8::Local<v8::Context>::New(context); |
+ return v8::Local<v8::Context>::New(m_isolate, context); |
return contextForWorld(this, isolatedWorld); |
} |
@@ -707,7 +707,7 @@ void ScriptController::executeScriptInIsolatedWorld(int worldID, const Vector<Sc |
for (size_t i = 0; i < sources.size(); ++i) { |
v8::Local<v8::Value> evaluationResult = compileAndRunScript(sources[i]); |
if (evaluationResult.IsEmpty()) |
- evaluationResult = v8::Local<v8::Value>::New(v8::Undefined()); |
+ evaluationResult = v8::Local<v8::Value>::New(m_isolate, v8::Undefined(m_isolate)); |
resultArray->Set(i, evaluationResult); |
} |