Bug 198688

Summary: Don't sanitize window.onerror information when "Importing binding name is not found"
Product: WebKit Reporter: joubran.jad
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cdumez, joubran.jad, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
index.html & index.js to replicate issue on Safari + a screenshot of the issue none

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.