-
Notifications
You must be signed in to change notification settings - Fork 913
Closed
Labels
embedding RhinoIssues related to enbedding RhinoIssues related to enbedding RhinofeatureIssues considered a new featureIssues considered a new feature
Milestone
Description
https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event
// Rhino
new Promise((resolve) => {
print('resolve');
resolve();
}).then(() => {
p(''); // ReferenceError
}); // without .catch()Rhino
resolve
[object Promise]
SpiderMonkey
Uncaught (in promise) ReferenceError: p is not defined
<anonymous> debugger eval code:5
promise callback* debugger eval code:4
node
ref. https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode
> (node:2889648) UnhandledPromiseRejectionWarning: ReferenceError: p is not defined
at REPL6:5:3
at processTicksAndRejections (internal/process/task_queues.js:95:5)
I think it will be difficult to debug without displaying an error or killing the process.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
embedding RhinoIssues related to enbedding RhinoIssues related to enbedding RhinofeatureIssues considered a new featureIssues considered a new feature