| Index: Source/bindings/core/v8/WorkerScriptController.cpp
|
| diff --git a/Source/bindings/core/v8/WorkerScriptController.cpp b/Source/bindings/core/v8/WorkerScriptController.cpp
|
| index 6a68e87850ec6b6b53ee04dfe3e7c17e440bf944..7e716280417806ee3711bb4740557cad26edc3c9 100644
|
| --- a/Source/bindings/core/v8/WorkerScriptController.cpp
|
| +++ b/Source/bindings/core/v8/WorkerScriptController.cpp
|
| @@ -238,10 +238,10 @@ ScriptValue WorkerScriptController::evaluate(const String& script, const String&
|
| return ScriptValue(m_scriptState.get(), result);
|
| }
|
|
|
| -void WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, RefPtrWillBeRawPtr<ErrorEvent>* errorEvent)
|
| +bool WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, RefPtrWillBeRawPtr<ErrorEvent>* errorEvent)
|
| {
|
| if (isExecutionForbidden())
|
| - return;
|
| + return false;
|
|
|
| WorkerGlobalScopeExecutionState state(this);
|
| evaluate(sourceCode.source(), sourceCode.url().string(), sourceCode.startPosition());
|
| @@ -250,7 +250,7 @@ void WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, RefPtr
|
| if (state.m_errorEventFromImportedScript) {
|
| // Propagate inner error event outwards.
|
| *errorEvent = state.m_errorEventFromImportedScript.release();
|
| - return;
|
| + return false;
|
| }
|
| if (m_workerGlobalScope.shouldSanitizeScriptError(state.sourceURL, NotSharableCrossOrigin))
|
| *errorEvent = ErrorEvent::createSanitizedError(m_world.get());
|
| @@ -266,7 +266,9 @@ void WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode, RefPtr
|
| event = ErrorEvent::create(state.errorMessage, state.sourceURL, state.lineNumber, state.columnNumber, m_world.get());
|
| m_workerGlobalScope.reportException(event, 0, nullptr, NotSharableCrossOrigin);
|
| }
|
| + return false;
|
| }
|
| + return true;
|
| }
|
|
|
| void WorkerScriptController::scheduleExecutionTermination()
|
|
|