From 97cceb47b9fb14fbf8cb45a28038934b6416e8ef Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 8 May 2022 01:12:13 -0700 Subject: Upgrade WebKit --- src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp') 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(lexicalGlobalObject); - // if (auto* window = jsDynamicCast(vm, globalObject)) { + // if (auto* window = jsDynamicCast( 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(vm, exceptionValue); + auto* exception = jsDynamicCast(exceptionValue); if (!exception) { exception = vm.lastException(); if (!exception) @@ -100,9 +100,9 @@ String retrieveErrorMessageWithoutName(JSGlobalObject& lexicalGlobalObject, VM& // FIXME: 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(vm, exception)) + if (auto* error = jsDynamicCast(exception)) errorMessage = error->sanitizedMessageString(&lexicalGlobalObject); - else if (auto* error = jsDynamicCast(vm, exception)) + else if (auto* error = jsDynamicCast(exception)) errorMessage = error->wrapped().message(); else errorMessage = exception.toWTFString(&lexicalGlobalObject); @@ -119,7 +119,7 @@ String retrieveErrorMessage(JSGlobalObject& lexicalGlobalObject, VM& vm, JSValue // FIXME: 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(vm, exception)) + if (auto* error = jsDynamicCast(exception)) errorMessage = error->sanitizedToString(&lexicalGlobalObject); else errorMessage = exception.toWTFString(&lexicalGlobalObject); -- cgit v1.2.3