wasm: Fix typo in Node.typeId

This commit is contained in:
Max Brunsfeld 2020-02-21 17:05:46 -08:00
parent 8addcf7604
commit 96c060fc6d
2 changed files with 2 additions and 1 deletions

View file

@ -212,7 +212,7 @@ class Node {
get typeId() {
marshalNode(this);
return C._ts_node_symbol_wasm(this.tree);
return C._ts_node_symbol_wasm(this.tree[0]);
}
get type() {

View file

@ -10,6 +10,7 @@ bundle exec ruby <<RUBY &
def copy_wasm_files
`cp $root/lib/binding_web/tree-sitter.{js,wasm} $root/docs/assets/js/`
`cp $root/target/release/*.wasm $root/docs/assets/js/`
end
puts "Copying WASM files to docs folder..."