-
Notifications
You must be signed in to change notification settings - Fork 234
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 cannot render preloaded object #1145
Comments
Yes, this has been reported before (see #340). There's no immediate intention to address it. A workaround is to use |
thanks, my searches didn't show this one... |
I've updated the doc. Thank you for the suggestion. Adding documentation into the runtime is a slippery slope, and not great for a runtime targeting extremely resource constrained targets. |
Build environment: Linux
Moddable SDK version: 3.9.2
Target device: Moddable Two
Description
Trying to JSON.stringify a preloaded object throws an exception:
The manifest contains
"preload": "main"
.The first trace is printed at compile time as expected.
The second fails with "stringify: read only value!".
Expected behavior
I expected JSON.stringify to succeed.
The text was updated successfully, but these errors were encountered: