Merge pull request #9587 from jamesgeorge007/hotfix/typographical-fix

chore(WebAssemblyGenerator): Minor typographical fixes
This commit is contained in:
Tobias Koppers 2019-08-19 15:19:25 +02:00 committed by GitHub
commit d805632e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ const getNextFuncIndex = (ast, countImportedFunc) => {
};
/**
* Create a init instruction for a global
* Creates an init instruction for a global type
* @param {t.GlobalType} globalType the global type
* @returns {t.Instruction} init expression
*/
@ -156,7 +156,7 @@ const createDefaultInitForGlobal = globalType => {
/**
* Rewrite the import globals:
* - removes the ModuleImport instruction
* - injects at the same offset a mutable global of the same time
* - injects at the same offset a mutable global of the same type
*
* Since the imported globals are before the other global declarations, our
* indices will be preserved.
@ -206,7 +206,7 @@ const rewriteImportedGlobals = state => bin => {
additionalInitCode.push(
/**
* get_global in global initilizer only work for imported globals.
* get_global in global initializer only works for imported globals.
* They have the same indices than the init params, so use the
* same index.
*/