feat(cli): add option to select JS runtime other than node

This commit is contained in:
Jake Sarjeant 2023-07-18 13:24:52 +02:00 committed by Andrew Hlynskyi
parent 05a4f9f3e3
commit 61b70943b1
3 changed files with 24 additions and 11 deletions

View file

@ -260,7 +260,7 @@ fn test_feature_corpus_files() {
grammar_path = test_path.join("grammar.json");
}
let error_message_path = test_path.join("expected_error.txt");
let grammar_json = generate::load_grammar_file(&grammar_path).unwrap();
let grammar_json = generate::load_grammar_file(&grammar_path, None).unwrap();
let generate_result = generate::generate_parser_for_grammar(&grammar_json);
if error_message_path.exists() {