Skip to content
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 strange behavior under jvm nashorn engine #389

Closed
denghongcai opened this issue Apr 3, 2018 · 2 comments
Closed

Object.assign strange behavior under jvm nashorn engine #389

denghongcai opened this issue Apr 3, 2018 · 2 comments
Labels

Comments

@denghongcai
Copy link

reproduce step:
0. install jdk8

  1. run jjs command, enter interactive shell
  2. run load('./core.js'), browser version core-js bundle
  3. run JSON.stringify(Object.assign({}, {1:2}, {x:1}))

output: {"x":1}

image

and if integer key is long enough, it works

image

@zloirock
Copy link
Owner

zloirock commented Apr 4, 2018

Seems the answer here:
image

@zloirock
Copy link
Owner

zloirock commented Apr 4, 2018

Fixed in v3 branch, thanks for the interesting issue -)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants