| Index: third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp
|
| index 7470f70ed4c369bbb5e8a967e1a2111ba902aa15..c70d1dfc9e8d01f2e3eec761c968283e046904d0 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp
|
| @@ -421,7 +421,7 @@ void ScriptController::executeScriptInIsolatedWorld(int worldID, const HeapVecto
|
| v8::Local<v8::Value> evaluationResult = executeScriptAndReturnValue(scriptState->context(), sources[i]);
|
| if (evaluationResult.IsEmpty())
|
| evaluationResult = v8::Local<v8::Value>::New(isolate(), v8::Undefined(isolate()));
|
| - if (!v8CallBoolean(resultArray->Set(scriptState->context(), v8::Integer::New(scriptState->isolate(), i), evaluationResult)))
|
| + if (!v8CallBoolean(resultArray->CreateDataProperty(scriptState->context(), i, evaluationResult)))
|
| return;
|
| }
|
|
|
|
|