-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Function.prototyp.toString only returns a fixed [native code]
string
#3780
Comments
Is it ok to add in Cursor a fields that will collect Is it acceptable to add this fields into |
Yeah, those changes sound good. I would say that on the AST side it would be the Module and the Script the ones holding the script source, and the rest of nodes would just have a span to index that. |
Hmm, do I understand you correctly: collect ALL the source code, and use it whenever we need some part of initial code (e.g. name of functions, string literals, and function source codes)? Or should it be done only for source codes of functions (it's what I try to do now)? |
All the code probably, because we're planning to use that to improve the error messages. |
ECMASCript feature
Function.prototyp.toString returns the actual javascript implementation in v8. ECMAScript specification
Example code
The expected output is
() => 1 + 1
.The text was updated successfully, but these errors were encountered: