Index: third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp |
index 41a0d7940f5fe4cfcabad5f9aa748c5755346680..8c2486d4e4dea9b39d944c99122823f019b202bb 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8BindingForTesting.cpp |
@@ -4,6 +4,7 @@ |
#include "bindings/core/v8/V8BindingForTesting.h" |
+#include "core/frame/Settings.h" |
#include "core/testing/DummyPageHolder.h" |
namespace blink { |
@@ -37,7 +38,9 @@ V8TestingScope::V8TestingScope() |
, m_handleScope(isolate()) |
, m_context(getScriptState()->context()) |
, m_contextScope(context()) |
+ , m_tryCatch(isolate()) |
{ |
+ frame().settings()->setScriptEnabled(true); |
} |
ScriptState* V8TestingScope::getScriptState() const |