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

JSON.stringify gives incorrect result for typed arrays #44

Closed
akosthekiss opened this issue Jan 4, 2019 · 1 comment
Closed

JSON.stringify gives incorrect result for typed arrays #44

akosthekiss opened this issue Jan 4, 2019 · 1 comment

Comments

@akosthekiss
Copy link
Contributor

Test case
JSON.stringify(new Uint32Array())
Problem

This is the same test case as in #31 . It has been fixed by #38 not to crash the engine but the outcome of the test case is different from the result of other engines.

  • Escargot gives "[]"
  • Safari/JSC, Chrome/V8, and JerryScript all give "{}"
Notes
  • It should be double checked whether the engines used as reference are conforming to the standard.
  • Other types (not only uint32) and non-empty arrays should also be checked whether they are handled OK.
@akosthekiss
Copy link
Contributor Author

False alarm. It seems that I was not on latest master. Sorry for the noise.

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

No branches or pull requests

1 participant