| Index: Source/bindings/core/v8/ScriptController.cpp
|
| diff --git a/Source/bindings/core/v8/ScriptController.cpp b/Source/bindings/core/v8/ScriptController.cpp
|
| index e2fb2110effb04272e11cf2740cffc82dd3b7341..5dfb7200fb337c7cfb308646f429a7cb957e9f0e 100644
|
| --- a/Source/bindings/core/v8/ScriptController.cpp
|
| +++ b/Source/bindings/core/v8/ScriptController.cpp
|
| @@ -174,6 +174,10 @@ v8::Local<v8::Value> ScriptController::executeScriptAndReturnValue(v8::Handle<v8
|
|
|
| v8::Local<v8::Value> result;
|
| {
|
| + V8CacheOptionsType v8CacheOptions(V8CacheOff);
|
| + if (m_frame->settings())
|
| + v8CacheOptions = m_frame->settings()->v8CacheOptions();
|
| +
|
| // Isolate exceptions that occur when compiling and executing
|
| // the code. These exceptions should not interfere with
|
| // javascript code we might evaluate from C++ when returning
|
| @@ -181,7 +185,7 @@ v8::Local<v8::Value> ScriptController::executeScriptAndReturnValue(v8::Handle<v8
|
| v8::TryCatch tryCatch;
|
| tryCatch.SetVerbose(true);
|
|
|
| - v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(source, m_isolate, corsStatus);
|
| + v8::Handle<v8::Script> script = V8ScriptRunner::compileScript(source, m_isolate, corsStatus, v8CacheOptions);
|
|
|
| // Keep LocalFrame (and therefore ScriptController) alive.
|
| RefPtr<LocalFrame> protect(m_frame);
|
|
|