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([].length) errors #211

Closed
lsim opened this issue Mar 11, 2022 · 2 comments
Closed

JSON.stringify([].length) errors #211

lsim opened this issue Mar 11, 2022 · 2 comments
Labels

Comments

@lsim
Copy link

lsim commented Mar 11, 2022

Hi Paul

The error I get is

Unsupported value type: System.UInt32

This happens for any length of the array, by the way.

It doesn't take much to get it working:

JSON.stringify([].length + 0);
@lsim
Copy link
Author

lsim commented Mar 11, 2022

Note that this is jurassic 2.1.0.0. It is quite possible that this is already fixed in a newer version, but I couldn't find a related issue, so I made one just in case.

@paulbartrum
Copy link
Owner

It was indeed still an issue. I've committed a change to fix it. Thanks for the bug report!

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