Fix small issues with new wasm bindings

This commit is contained in:
Max Brunsfeld 2021-02-05 10:18:18 -08:00
parent f65b499a7c
commit f462f0d09d
2 changed files with 31 additions and 84 deletions

View file

@ -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() {