wasm: Fix typo in Node.typeId
This commit is contained in:
parent
8addcf7604
commit
96c060fc6d
2 changed files with 2 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue