diff options
Diffstat (limited to 'src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp')
-rw-r--r-- | src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp b/src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp index 494bf9e3a..473196641 100644 --- a/src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp +++ b/src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp @@ -56,7 +56,7 @@ void reportException(JSGlobalObject* lexicalGlobalObject, JSC::Exception* except vm.clearLastException(); auto* globalObject = jsCast<JSDOMGlobalObject*>(lexicalGlobalObject); - // if (auto* window = jsDynamicCast<JSDOMWindow*>(vm, globalObject)) { + // if (auto* window = jsDynamicCast<JSDOMWindow*>( globalObject)) { // if (!window->wrapped().isCurrentlyDisplayedInFrame()) // return; // } @@ -85,7 +85,7 @@ void reportException(JSGlobalObject* lexicalGlobalObject, JSValue exceptionValue { VM& vm = lexicalGlobalObject->vm(); RELEASE_ASSERT(vm.currentThreadIsHoldingAPILock()); - auto* exception = jsDynamicCast<JSC::Exception*>(vm, exceptionValue); + auto* exception = jsDynamicCast<JSC::Exception*>(exceptionValue); if (!exception) { exception = vm.lastException(); if (!exception) @@ -100,9 +100,9 @@ String retrieveErrorMessageWithoutName(JSGlobalObject& lexicalGlobalObject, VM& // FIXME: <http://webkit.org/b/115087> Web Inspector: WebCore::reportException should not evaluate JavaScript handling exceptions // If this is a custom exception object, call toString on it to try and get a nice string representation for the exception. String errorMessage; - if (auto* error = jsDynamicCast<ErrorInstance*>(vm, exception)) + if (auto* error = jsDynamicCast<ErrorInstance*>(exception)) errorMessage = error->sanitizedMessageString(&lexicalGlobalObject); - else if (auto* error = jsDynamicCast<JSDOMException*>(vm, exception)) + else if (auto* error = jsDynamicCast<JSDOMException*>(exception)) errorMessage = error->wrapped().message(); else errorMessage = exception.toWTFString(&lexicalGlobalObject); @@ -119,7 +119,7 @@ String retrieveErrorMessage(JSGlobalObject& lexicalGlobalObject, VM& vm, JSValue // FIXME: <http://webkit.org/b/115087> Web Inspector: WebCore::reportException should not evaluate JavaScript handling exceptions // If this is a custom exception object, call toString on it to try and get a nice string representation for the exception. String errorMessage; - if (auto* error = jsDynamicCast<ErrorInstance*>(vm, exception)) + if (auto* error = jsDynamicCast<ErrorInstance*>(exception)) errorMessage = error->sanitizedToString(&lexicalGlobalObject); else errorMessage = exception.toWTFString(&lexicalGlobalObject); |