summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/WorkerScriptController.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/WorkerScriptController.cpp')
-rw-r--r--WebCore/bindings/js/WorkerScriptController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/bindings/js/WorkerScriptController.cpp b/WebCore/bindings/js/WorkerScriptController.cpp
index 1d45dfa..6ff8a69 100644
--- a/WebCore/bindings/js/WorkerScriptController.cpp
+++ b/WebCore/bindings/js/WorkerScriptController.cpp
@@ -41,6 +41,7 @@
#include <interpreter/Interpreter.h>
#include <runtime/Completion.h>
#include <runtime/Completion.h>
+#include <runtime/Error.h>
#include <runtime/JSLock.h>
using namespace JSC;
@@ -137,7 +138,7 @@ ScriptValue WorkerScriptController::evaluate(const ScriptSourceCode& sourceCode,
void WorkerScriptController::setException(ScriptValue exception)
{
- m_workerContextWrapper->globalExec()->setException(exception.jsValue());
+ throwError(m_workerContextWrapper->globalExec(), exception.jsValue());
}
void WorkerScriptController::forbidExecution(ForbidExecutionOption option)