diff options
author | 2022-05-08 01:12:13 -0700 | |
---|---|---|
committer | 2022-05-08 01:12:13 -0700 | |
commit | 97cceb47b9fb14fbf8cb45a28038934b6416e8ef (patch) | |
tree | 250c430effeff27b5d37070f7c647bd1bfd7477b /src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp | |
parent | 94637711b9f558576ffebe2f5dd834dc05a95f7b (diff) | |
download | bun-97cceb47b9fb14fbf8cb45a28038934b6416e8ef.tar.gz bun-97cceb47b9fb14fbf8cb45a28038934b6416e8ef.tar.zst bun-97cceb47b9fb14fbf8cb45a28038934b6416e8ef.zip |
Upgrade WebKit
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); |