-
-
Notifications
You must be signed in to change notification settings - Fork 406
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] - Implement the WeakRef
builtin
#2438
Conversation
Test262 conformance changes
Fixed tests (58):
|
Codecov Report
@@ Coverage Diff @@
## main #2438 +/- ##
==========================================
+ Coverage 52.41% 52.54% +0.13%
==========================================
Files 329 329
Lines 34945 34942 -3
==========================================
+ Hits 18315 18360 +45
+ Misses 16630 16582 -48
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 good to me.
I think if we use a forced gc run, we could create a test to make sure that weakrefs are correctly gc'd after a microtask execution, right?
Yep. I think the test262 only tests that objects aren't gc'd between derefs on the same script. To test the other half of the API, we'll need to:
I'll add some tests for it. |
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 great 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.
Thank you! Just a small question about one piece of code :)
Bors r+ |
52/60 tests passing. The remaining tests are either features not implemented ([FinalizationRegistry](https://tc39.es/ecma262/multipage/managing-memory.html#sec-finalization-registry-objects)) or features still in development ([symbols-as-weakmap-keys](https://github.com/tc39/proposal-symbols-as-weakmap-keys)).
Pull request successfully merged into main. Build succeeded: |
WeakRef
builtinWeakRef
builtin
52/60 tests passing. The remaining tests are either features not implemented (FinalizationRegistry) or features still in development (symbols-as-weakmap-keys).