From 96c060fc6d695488d01713df6cc4cdb1616a5508 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 21 Feb 2020 17:05:46 -0800 Subject: [PATCH] wasm: Fix typo in Node.typeId --- lib/binding_web/binding.js | 2 +- script/serve-docs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/binding_web/binding.js b/lib/binding_web/binding.js index 61d0a92f..96f6ef08 100644 --- a/lib/binding_web/binding.js +++ b/lib/binding_web/binding.js @@ -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() { diff --git a/script/serve-docs b/script/serve-docs index 2e9b258e..9639016e 100755 --- a/script/serve-docs +++ b/script/serve-docs @@ -10,6 +10,7 @@ bundle exec ruby <