-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
object.assign
property enumeration order tests fail in node 0.8 with core-js
#122
Comments
Update: it now passes locally, but is still failing in travis |
Interesting. I have no ideas, how |
Tried it, on local machine (Windows 10, Node 0.8.28) all tests passed. Without test case also can't reproduce it. As I wrote, possible one more V8 bug with enumeration order related additional prototype properties, I don't see another possible reason. |
Yeah I'm confused also, since it passes for me locally as well, and with or without |
Ok, I close it. It's old V8, not |
Good point - it seems deterministic even if it's not by spec. Closing is fine. If we ever figure out why the specific combination of node 0.8 and core-js doesn't follow spec ordering, then perhaps we can fix it :-) |
whatever you did between 1.2.5 and 1.2.6 fixed the issue on node 0.8 - thanks! |
@ljharb strange... IIRC I didn't touch something related. |
actually nvm - it's always worked locally, it's still broken in travis. carry on! |
The tests added in ljharb/object.assign#17 - which simply require
core-js
, assert that the module'shasSymbols
check istrue
(it is), and then runs the implementation tests as a sanity check.See https://travis-ci.org/ljharb/object.assign/jobs/86559422 - if you
npm run test:shams:corejs
innode
v0.8
on ljharb/object.assign@b9567a3, you'll see that'abcdefghijklmnopqrst'
ends up being'bacdefghijklmnopqrst'
- however, this does not occur withoutcore-js
.I've fixed this in ljharb/object.assign@7087754 by changing my test from using
Array#reduce
to thefor-each
module - but that implies thatrequire('core-js/modules/es6.symbol')'
is somehow causing the globalArray#reduce
to be modified innode
v0.8
in a way that breaks property enumeration order.The text was updated successfully, but these errors were encountered: