fix(runtime/js/workers): throw errors instead of using an op (#12249)

This commit is contained in:
Nayeem Rahman 2021-10-01 10:30:55 +01:00 committed by GitHub
parent c0b6c0eea5
commit b354eaa247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 74 additions and 74 deletions

View file

@ -157,10 +157,7 @@ delete Object.prototype.__proto__;
globalDispatchEvent(errorEvent);
if (!errorEvent.defaultPrevented) {
core.opSync(
"op_worker_unhandled_error",
e.message,
);
throw e;
}
}
}