Skip to content

Commit 995ba81

Browse files
authoredJul 31, 2023
removes nullish-coalescing operator to increase compatibility (#19925)
1 parent 43a1d18 commit 995ba81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Module['instantiateWasm'] = (info, receiveInstance) => {
9999
// Turn unhandled rejected promises into errors so that the main thread will be
100100
// notified about them.
101101
self.onunhandledrejection = (e) => {
102-
throw e.reason ?? e;
102+
throw e.reason || e;
103103
};
104104

105105
function handleMessage(e) {

0 commit comments

Comments
 (0)
Failed to load comments.