Configure compiled WASM grammars to not catch rejections

This commit is contained in:
Jonathan Arnett 2022-10-01 13:03:23 -04:00 committed by Max Brunsfeld
parent 37e0e8a7ab
commit 813216be9a

View file

@ -83,6 +83,8 @@ pub fn compile_language_to_wasm(language_dir: &Path, force_docker: bool) -> Resu
"-s",
"NODEJS_CATCH_EXIT=0",
"-s",
"NODEJS_CATCH_REJECTION=0",
"-s",
&format!("EXPORTED_FUNCTIONS=[\"_tree_sitter_{}\"]", grammar_name),
"-fno-exceptions",
"-I",