The cli parameter --dump-ast Json
panics
#1920
Labels
ast
Issue surrounding the abstract syntax tree
bug
Something isn't working
cli
Issues and PRs related to the Boa command line interface.
E-Easy
Easy
good first issue
Good for newcomers
Milestone
Describe the bug
Whey trying to output the AST with the cli parameter
--dump-ast Json
or--dump-ast JsonPretty
boa panics.To Reproduce
This JavaScript code reproduces the issue:
run the following code with
cargo run -- --dump-ast Json
thread 'main' panicked at 'could not convert AST to a pretty JSON string: Error("can only flatten structs and maps (got a sequence)", line: 0, column: 0)', boa_cli/src/main.rs:181:30
Expected behavior
Print the AST in JSON format.
The text was updated successfully, but these errors were encountered: