Set NODEJS_CATCH_EXIT=0 when invoking emcc

This commit is contained in:
Paul Young 2019-07-10 13:41:16 +01:00 committed by GitHub
parent eb0d9af577
commit 98d98ca171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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