Steps to reproduce
export default 42;
Expected result: logs null.
Actual result: logs the script element.
This script is handled as a module–it does not produce a syntax error (compare with the result if type="module" is omitted.)
See the algorithm to “execute a script block” https://html.spec.whatwg.org/#execute-the-script-block step 5."module" case.1:
“Set the script element’s node document’s currentScript attribute to null.”
document.currentScript should be null, not the script block.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Jeff W.”
Changed Status to “Confirmed”
Changed Status from “Confirmed” to “In progress”
Changed Status from “In progress” to “In code review”
Changed Status from “In code review” to “In progress”
Changed Status from “In progress” to “Fixed”
Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 15063 and is available in our latest Insider Preview build.
The MS Edge Team