docs: change WASM/wasm to Wasm
That is the official capitalisation.
This commit is contained in:
parent
7bc8f76667
commit
88e0b4cea4
36 changed files with 122 additions and 122 deletions
|
|
@ -18,7 +18,7 @@ export class LanguageMetadata {
|
|||
*/
|
||||
export class Language {
|
||||
/** @internal */
|
||||
private [0] = 0; // Internal handle for WASM
|
||||
private [0] = 0; // Internal handle for Wasm
|
||||
|
||||
/**
|
||||
* A list of all node types in the language. The index of each type in this
|
||||
|
|
@ -282,8 +282,8 @@ export class Language {
|
|||
const functionName = symbolNames.find((key) => LANGUAGE_FUNCTION_REGEX.test(key) &&
|
||||
!key.includes('external_scanner_'));
|
||||
if (!functionName) {
|
||||
console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(symbolNames, null, 2)}`);
|
||||
throw new Error('Language.load failed: no language function found in WASM file');
|
||||
console.log(`Couldn't find language function in Wasm file. Symbols:\n${JSON.stringify(symbolNames, null, 2)}`);
|
||||
throw new Error('Language.load failed: no language function found in Wasm file');
|
||||
}
|
||||
const languageAddress = mod[functionName]();
|
||||
return new Language(INTERNAL, languageAddress);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue