We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug A panic occurs when no arguments are passed to JSON.parse.
JSON.parse
To Reproduce
JSON.parse()
Expected behavior Expected: a JavaScript error is raised (Chrome seems to raise a SyntaxError)
SyntaxError
Build environment (please complete the following information):
x86_64-pc-windows-msvc
rustc 1.46.0 (04488afe3 2020-08-24)
Additional context It's caused by an .expect in the builtins/json/mod.rs file.
.expect
builtins/json/mod.rs
More info on JSON.parse: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
A panic occurs when no arguments are passed to
JSON.parse
.To Reproduce
Expected behavior
Expected: a JavaScript error is raised (Chrome seems to raise a
SyntaxError
)Build environment (please complete the following information):
x86_64-pc-windows-msvc
(also happens with the WASM example on the website)rustc 1.46.0 (04488afe3 2020-08-24)
Additional context
It's caused by an
.expect
in thebuiltins/json/mod.rs
file.More info on
JSON.parse
: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parseThe text was updated successfully, but these errors were encountered: