Module scope objects not displayed properly when paused in debugger
Expected behavior:
When paused in a breakpoint within a .js file with type="module", it should correctly display the module's scope block on the right sidebar.
Actual behavior:
Instead, only <this> : undefined is displayed in that block.
Screenshots:
text/javascript
<script type="text/javascript" src="main.js"></script>
module
<script type="module" src="main.js"></script>
To reproduce:
- Clone https://github.com/notjaril/module-scope-example.git
- Open index.html
- Case 1 (text/javascript), set a breakpoint at main.js:7. Note the Scopes frame in the right sidebar
- Change the script type in index.html from
text/javascripttomodule - Case 2 (module), set a breakpoint at main.js:7. Note the Scopes frame in the right sidebar
/claim
Thanks for claiming the issue! :wave:
Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.
:fox_face: Debugger team!
@nagpalm7 this could be quite hard... atleast a js engine bug.
closing this as it is now in bugzilla
https://bugzilla.mozilla.org/show_bug.cgi?id=1518308