-
-
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
Make Array.prototype.concat
spec compliant
#1353
Conversation
Only thing would be I think the way I define spreadable isn’t super spec compliant, and perhaps we should create a utility function for isConcatSpreadable? |
I think it makes sense, if it would make it more spec compliant. |
Test262 conformance changes:
Broken tests:
|
@Razican I've been working on creating the utility function is_concat_spreadable, but haven't quite worked out how to access the attribute here from |
285e4c4
to
11a346c
Compare
@Razican when you get the chance, could you check this PR, the test is failing due to proxies not being implemented, but the function is working as expected for the first part of the test-case, we could wait for #1300 to be resolved before merging, but as it's a test, I'm not sure if that's necessary. |
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! Let's merge it and wait for Buffer objects in order to fix the test.
- adds limit checks to array concat - still fails test/built-ins/Array/prototype/concat/arg-length-exceeding-integer-limit.js - no longer runs forever Closes boa-dev#1306 add `is_concat_spreadable` utility add array check make suggested changes perf add docs & propagate error add `is_concat_spreadable` utility add array check add `is_concat_spreadable` utility add array check make suggested changes fix(boa): fixes concat limit - adds limit checks to array concat - still fails test/built-ins/Array/prototype/concat/arg-length-exceeding-integer-limit.js - no longer runs forever Closes boa-dev#1306 add `is_concat_spreadable` utility add array check make suggested changes perf add docs & propagate error add docs & propagate error
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.
Test262 conformance changes:
Fixed tests:
Broken tests:
|
Fixed tests:
Broken tests:
|
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.
I think we should remove the array_cancat benchmarks since, we already have benchmarks about array access.
Besides that it looks good to me :)
Array.prototype.concat
spec compliant
This Pull Request fixes/closes #1306.
It changes the following: