-
-
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
Fix panics from multiple borrows of Map. #1077
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1077 +/- ##
==========================================
- Coverage 58.70% 58.68% -0.02%
==========================================
Files 176 176
Lines 12391 12405 +14
==========================================
+ Hits 7274 7280 +6
- Misses 5117 5125 +8
Continue to review full report at Codecov.
|
Test262 conformance changes:
|
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.
Seems like a good solution to the panics.
This is a pretty weird part of the spec, certain callbacks can create infinite-loops:
function callingCallback(value, key, map) {
console.log(key)
map.delete(key)
map.set(key, value)
}
Not sure how to implement this, might want to look at other engines' implementations.
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.
This looks good to me. Thanks.
This Pull Request fixes/closes #1058.
It changes the following:
This approach still has issues, as mentioned in #1058 (comment)