-
-
Notifications
You must be signed in to change notification settings - Fork 415
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
MethodDefinition parsing #292
Comments
I'll like to work on this. |
Go for it. 👍 |
I think the link in the description should point to a specific file but it points to a whole pull request with several files and I don't know where to look. Also, Is the code snippet in the description the part I should refactor? |
Good catch, I updated the link in the description. It should be https://github.com/jasonwilliams/boa/blob/master/boa/src/syntax/parser/mod.rs#L1599 |
if I get this correctly: I will have to define a different method to parse js methods. Right now only |
Pretty much.
You don't really have to extract |
We currently don't parse getters and setters on object literals.
There needs to be a new parsing section for MethodDefinitions.
We already have readObjectLiteral, so the logic would need to be called from within there.
https://github.com/jasonwilliams/boa/blob/master/boa/src/syntax/parser/mod.rs#L1599
This would either need to be rebased on jasonwilliams#281 or on master once #281 is in.
Spec:
https://tc39.es/ecma262/#prod-MethodDefinition
Previous Rust Code (you don't have to use this)
The text was updated successfully, but these errors were encountered: