Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scopes: what is GeneratedRange.isScope? #112

Open
connor4312 opened this issue Jun 25, 2024 · 1 comment
Open

Scopes: what is GeneratedRange.isScope? #112

connor4312 opened this issue Jun 25, 2024 · 1 comment

Comments

@connor4312
Copy link

It's missing jsdocs and I don't see it referenced in text/issues anywhere, was curious 🙂

@szuend
Copy link
Collaborator

szuend commented Aug 22, 2024

Initially this was planned to mark generated ranges that are actual JS scopes in the generated code (opposed to e.g. an inlined function body). But it turned out that debuggers don't really need this info.

I propose a change with #114 where we re-use the flag to mean "this generated range is a function/arrow function/constructor in the generated code (aka it can be called)". This would allow stack trace processors to effectively determine whether a stack frame can be omitted or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants