-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Implement Runtime Private Environments #2929
Conversation
Test262 conformance changes
Fixed tests (89):
|
Codecov Report
@@ Coverage Diff @@
## main #2929 +/- ##
==========================================
- Coverage 50.45% 50.39% -0.07%
==========================================
Files 442 443 +1
Lines 45267 45336 +69
==========================================
+ Hits 22840 22846 +6
- Misses 22427 22490 +63
|
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.
Overall it looks good! Just had a small concern about the id
field. The id (pointer address) is valid only for how long the Object is (because it can be reassigned to another object).
Can it be used after the object is deallocated?
*pc += size_of::<u32>() * (count as usize + 1); | ||
String::new() |
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.
It would be nice to print the operands
I thought a bit about this. I think this should work. The private environments are only stored on function objects that are methods of classes. Those function objects always have a reference back to the class object with the |
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 perfect to me!
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 work!
2d3b13d
to
7c466f7
Compare
This Pull Request changes the following: