-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
[Merged by Bors] - Replace contains
and friends with visitors
#2403
Conversation
Test262 conformance changes
Fixed tests (12):
|
Codecov Report
@@ Coverage Diff @@
## main #2403 +/- ##
==========================================
+ Coverage 38.29% 39.07% +0.78%
==========================================
Files 310 311 +1
Lines 24290 23669 -621
==========================================
- Hits 9301 9248 -53
+ Misses 14989 14421 -568
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good! I added some comments where needed. I also liked the fix with the leading_ones()
function and the fix to the bug you found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff. Having all of the logic in one place is really nice.
bors r+ |
This Pull Request replaces `contains`, `contains_arguments`, `has_direct_super` and `function_contains_super` with visitors. (~1000 removed lines!) Also, the new visitor implementation caught a bug where we weren't setting the home object of async functions, generators and async generators for methods of classes, which caused a stack overflow on `super` calls, and I think that's pretty cool! Next is `var_declared_names`, `lexically_declared_names` and friends, which will be on another PR.
Pull request successfully merged into main. Build succeeded: |
contains
and friends with visitorscontains
and friends with visitors
This Pull Request replaces
contains
,contains_arguments
,has_direct_super
andfunction_contains_super
with visitors. (~1000 removed lines!)Also, the new visitor implementation caught a bug where we weren't setting the home object of async functions, generators and async generators for methods of classes, which caused a stack overflow on
super
calls, and I think that's pretty cool!Next is
var_declared_names
,lexically_declared_names
and friends, which will be on another PR.