Make binding.js syntactically valid
Put the end of the surrounding closure into a separate file, suffix.js.
This commit is contained in:
parent
a2d6048226
commit
b118e7d750
3 changed files with 3 additions and 5 deletions
|
|
@ -95,6 +95,7 @@ $emcc \
|
|||
--js-library ${web_dir}/imports.js \
|
||||
--pre-js ${web_dir}/prefix.js \
|
||||
--post-js ${web_dir}/binding.js \
|
||||
--post-js ${web_dir}/suffix.js \
|
||||
lib/src/lib.c \
|
||||
${web_dir}/binding.c \
|
||||
-o target/scratch/tree-sitter.js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue