| Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| index a4ed4ac24136c94849308c457b9bb30ba0e48c12..fd26de244be8c7a0cec4992a669add35f802de72 100644
|
| --- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| @@ -313,6 +313,11 @@ v8::Handle<v8::Value> V8InjectedScriptHost::evaluateMethodCustom(const v8::Argum
|
| if (expression.IsEmpty())
|
| return v8::ThrowException(v8::Exception::Error(v8::String::New("The argument must be a string.")));
|
|
|
| + // Mark the context as temporarily used by debugger.
|
| + v8::HandleScope scope;
|
| + v8::Local<v8::Context> context = v8::Context::GetCurrent();
|
| + V8ScopedCompilation debuggerCompilation(context, DevtoolsScriptCompilation);
|
| +
|
| v8::Handle<v8::Script> script = v8::Script::Compile(expression);
|
| if (script.IsEmpty()) // Return immediately in case of exception to let the caller handle it.
|
| return v8::Handle<v8::Value>();
|
|
|