| Index: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| index 68227750a8736d2dff753064540a0ce2bd5b95c0..dac95be11b5d65e70751095b81d9f729658e411c 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| @@ -107,7 +107,12 @@ void V8RuntimeAgentImpl::evaluate(
|
| // Temporarily enable allow evals for inspector.
|
| if (evalIsDisabled)
|
| scope.context()->AllowCodeGenerationFromStrings(true);
|
| - v8::MaybeLocal<v8::Value> maybeResultValue = m_debugger->compileAndRunInternalScript(scope.context(), toV8String(m_debugger->isolate(), expression));
|
| +
|
| + v8::MaybeLocal<v8::Value> maybeResultValue;
|
| + v8::Local<v8::Script> script = m_debugger->compileInternalScript(scope.context(), toV8String(m_debugger->isolate(), expression), String16());
|
| + if (!script.IsEmpty())
|
| + maybeResultValue = m_debugger->runCompiledScript(scope.context(), script);
|
| +
|
| if (evalIsDisabled)
|
| scope.context()->AllowCodeGenerationFromStrings(false);
|
|
|
|
|