NEW 198688
Don't sanitize window.onerror information when "Importing binding name is not found"
https://bugs.webkit.org/show_bug.cgi?id=198688
Summary Don't sanitize window.onerror information when "Importing binding name is not...
joubran.jad
Reported 2019-06-08 04:19:57 PDT
Created attachment 371651 [details] index.html & index.js to replicate issue on Safari + a screenshot of the issue When you try to import a name that doesn't exist from a JavaScript module, an error shows up in the console: "SyntaxError: Importing binding name 'X' is not found" however this error message cannot be read from a `window.onerror` handler. The `onerror` handler only reports: "Script error." at line 0, column 0. Example import: import { NonExisting } from "./index.js";
Attachments
index.html & index.js to replicate issue on Safari + a screenshot of the issue (43.41 KB, application/zip)
2019-06-08 04:19 PDT, joubran.jad
no flags
Radar WebKit Bug Importer
Comment 1 2019-06-09 06:08:38 PDT
Note You need to log in before you can comment on or make changes to this bug.