aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSDOMExceptionHandling.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-10 21:46:17 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-08-10 21:46:17 -0700
commit4fe24a4f3c6bf68b2fd69de028a89842a0fe7ec8 (patch)
treee3276cd3270fb1f3b6973de27a9177c3264d0e62 /src/bun.js/bindings/JSDOMExceptionHandling.cpp
parent551cb26afbec6187c2455aa3e339c180c4eacf20 (diff)
downloadbun-4fe24a4f3c6bf68b2fd69de028a89842a0fe7ec8.tar.gz
bun-4fe24a4f3c6bf68b2fd69de028a89842a0fe7ec8.tar.zst
bun-4fe24a4f3c6bf68b2fd69de028a89842a0fe7ec8.zip
Log uncaught exceptions
Diffstat (limited to 'src/bun.js/bindings/JSDOMExceptionHandling.cpp')
-rw-r--r--src/bun.js/bindings/JSDOMExceptionHandling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/JSDOMExceptionHandling.cpp b/src/bun.js/bindings/JSDOMExceptionHandling.cpp
index b3627481d..38a55f7f2 100644
--- a/src/bun.js/bindings/JSDOMExceptionHandling.cpp
+++ b/src/bun.js/bindings/JSDOMExceptionHandling.cpp
@@ -71,10 +71,10 @@ void reportException(JSGlobalObject* lexicalGlobalObject, JSC::Exception* except
// exceptionSourceURL = callFrame->sourceURL();
// }
- auto errorMessage = retrieveErrorMessage(*lexicalGlobalObject, vm, exception->value(), scope);
- Zig__GlobalObject__reportUncaughtException(globalObject, exception);
+ Zig::GlobalObject::reportUncaughtExceptionAtEventLoop(globalObject, exception);
if (exceptionDetails) {
+ auto errorMessage = retrieveErrorMessage(*lexicalGlobalObject, vm, exception->value(), scope);
exceptionDetails->message = errorMessage;
exceptionDetails->lineNumber = lineNumber;
exceptionDetails->columnNumber = columnNumber;