tc39 / source-map

Source map specification, RFCs and new proposals.
https://tc39.es/source-map/
Other
130 stars 17 forks source link

Scopes: Define exact scope start/end requirements for generators (in terms of JavaScript AST) #115

Closed szuend closed 4 months ago

szuend commented 4 months ago

This came up a couple of times but we should spell out explicitly for each JavaScript language scope where we expect generated ranges to start/end. Debuggers (Firefox DevTools, Chrome DevTools) need to be able to match generated ranges to the scopes that all out of the engine.

For example, generated ranges for a JavaScript should start at the opening paren ( and end at the closing curly }. We should spell this out for all scope types in the JavaScript language.

szuend commented 4 months ago

Duplicate of #76