Index: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp |
index 3465546bae78bd5871998ad523d66b8a256c4217..c2225217ee2a1a23d890b48f47eff1490b0034a5 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.cpp |
@@ -142,8 +142,9 @@ bool DocumentWriteEvaluator::Evaluate(const String& script_source) { |
if (source.IsEmpty()) |
return false; |
v8::TryCatch try_catch(isolate); |
- return !V8ScriptRunner::CompileAndRunInternalScript(source.ToLocalChecked(), |
- isolate) |
+ return !V8ScriptRunner::CompileAndRunInternalScript( |
+ ExecutionContext::From(ScriptState::Current(isolate)), |
+ source.ToLocalChecked(), isolate) |
.IsEmpty(); |
} |