Fix small issues with new wasm bindings
This commit is contained in:
parent
f65b499a7c
commit
f462f0d09d
2 changed files with 31 additions and 84 deletions
|
|
@ -652,7 +652,7 @@ class Language {
|
|||
stringToUTF8(type, typeAddress, typeLength + 1);
|
||||
const result = C._ts_language_symbol_for_name(this[0], typeAddress, typeLength, named);
|
||||
C._free(typeAddress);
|
||||
return result;
|
||||
return result || null;
|
||||
}
|
||||
|
||||
get nodeTypeCount() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue