Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4436 +/- ##
==========================================
+ Coverage 47.24% 51.46% +4.22%
==========================================
Files 476 504 +28
Lines 46892 51343 +4451
==========================================
+ Hits 22154 26424 +4270
- Misses 24738 24919 +181 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
hansl
left a comment
There was a problem hiding this comment.
Good job so far! Two minor nits and one blocker which panics in the compliance tests.
This seems to fix some test262 compliance tests, so that's great! But also, we ignored the Upsert-specific tests, to re-enable them you need to remove these lines: https://github.com/boa-dev/boa/blob/main/test262_config.toml#L51-L54
And run the test262 suite (it might take a while):
cargo run --bin boa_tester -- runYou can also add the --suite test/built-ins/Map/prototype argument to only run Map-specific compliance tests.
hansl
left a comment
There was a problem hiding this comment.
Two nits, one non-blocking and one I'd like to see fixed before merging. Otherwise LGTM and ready to merge (outside of those nits).
Also, note: force pushing the whole PR makes it hard to review. We don't use commit messages when merging into main (only the PR description), so just push new commits to PRs and I can see the diff clearer.
Thanks a lot!
| r#" | ||
| const m = new Map(); | ||
| let seenThis, seenKey; | ||
| const v = m.getOrInsertComputed(-0, function(k) { 'use strict'; seenThis = this; seenKey = k; return 'ok'; }); |
There was a problem hiding this comment.
Non-blocking nit: no need for use strict.
There was a problem hiding this comment.
Without use strict, is this undefined?
test262_config.toml
Outdated
|
|
||
| features = [ | ||
| ### Unimplemented features: | ||
| ### Unimplemented features: |
There was a problem hiding this comment.
Just realized that our editorconfig didn't have 4 spaces for indentation. I made #4446, but in the meantime, could you reconfigure your editor to have 4 spaces, then re-format this file? That way we can actually see what changed :)
hansl
left a comment
There was a problem hiding this comment.
LGTM. To answer your question, it should not, no. Unless the function is bound of course.
Not a blocker IMO.
|
Good work @jasonmilad ! Thanks so much for the PR and the patience going through the review process. |
This Pull Request implements part of the Upsert proposal for
Map.It changes the following:
Map.prototype.getOrInsertmethod.Map.prototype.getOrInsertComputedmethod.-0→+0) per the spec draft.