aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-08 01:12:13 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-05-08 01:12:13 -0700
commit97cceb47b9fb14fbf8cb45a28038934b6416e8ef (patch)
tree250c430effeff27b5d37070f7c647bd1bfd7477b /src/javascript/jsc/bindings/JSDOMExceptionHandling.cpp
parent94637711b9f558576ffebe2f5dd834dc05a95f7b (diff)
downloadbun-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.cpp10
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);