diff options
Diffstat (limited to 'Source/WebCore/bindings/js/JSWorkerCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/js/JSWorkerCustom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/bindings/js/JSWorkerCustom.cpp b/Source/WebCore/bindings/js/JSWorkerCustom.cpp index ca0f76195..7145fcf34 100644 --- a/Source/WebCore/bindings/js/JSWorkerCustom.cpp +++ b/Source/WebCore/bindings/js/JSWorkerCustom.cpp @@ -52,10 +52,10 @@ JSC::JSValue JSWorker::webkitPostMessage(JSC::ExecState* exec) EncodedJSValue JSC_HOST_CALL JSWorkerConstructor::constructJSWorker(ExecState* exec) { - JSWorkerConstructor* jsConstructor = static_cast<JSWorkerConstructor*>(exec->callee()); + JSWorkerConstructor* jsConstructor = jsCast<JSWorkerConstructor*>(exec->callee()); if (!exec->argumentCount()) - return throwVMError(exec, createTypeError(exec, "Not enough arguments")); + return throwVMError(exec, createNotEnoughArgumentsError(exec)); UString scriptURL = exec->argument(0).toString(exec)->value(exec); if (exec->hadException()) |