@@ -69,7 +69,7 @@ function isDefined(symName) {
6969 if ( symName == '__main_argc_argv' && SIDE_MODULE_EXPORTS . has ( 'main' ) ) {
7070 return true ;
7171 }
72- // 'invoke_' symbols are created at runtime in libary_dylink .py so can
72+ // 'invoke_' symbols are created at runtime in library_dylink .py so can
7373 // always be considered as defined.
7474 if ( RELOCATABLE && symName . startsWith ( 'invoke_' ) ) {
7575 return true ;
@@ -138,22 +138,22 @@ function runJSify() {
138138 }
139139
140140 function handleI64Signatures ( symbol , snippet , sig , i53abi ) {
141- // Handle i64 paramaters and return values.
141+ // Handle i64 parameters and return values.
142142 //
143143 // When WASM_BIGINT is enabled these arrive as BigInt values which we
144144 // convert to int53 JS numbers. If necessary, we also convert the return
145145 // value back into a BigInt.
146146 //
147147 // When WASM_BIGINT is not enabled we receive i64 values as a pair of i32
148- // numbers which is coverted to single int53 number. In necessary, we also
148+ // numbers which is converted to single int53 number. In necessary, we also
149149 // split the return value into a pair of i32 numbers.
150150 return modifyJSFunction ( snippet , ( args , body , async_ , oneliner ) => {
151151 let argLines = args . split ( '\n' ) ;
152152 argLines = argLines . map ( ( line ) => line . split ( '//' ) [ 0 ] ) ;
153153 const argNames = argLines . join ( ' ' ) . split ( ',' ) . map ( ( name ) => name . trim ( ) ) ;
154154 const newArgs = [ ] ;
155155 let innerArgs = [ ] ;
156- let argConvertions = '' ;
156+ let argConversions = '' ;
157157 if ( sig . length > argNames . length + 1 ) {
158158 error ( `handleI64Signatures: signature too long for ${ symbol } ` ) ;
159159 return snippet ;
@@ -164,13 +164,13 @@ function runJSify() {
164164 // here, which will result in the default case below.
165165 const argType = sig [ i + 1 ] ;
166166 if ( WASM_BIGINT && ( ( MEMORY64 && argType == 'p' ) || ( i53abi && argType == 'j' ) ) ) {
167- argConvertions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
167+ argConversions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
168168 } else {
169169 if ( argType == 'j' && i53abi ) {
170- argConvertions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
170+ argConversions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
171171 newArgs . push ( defineI64Param ( name ) ) ;
172172 } else if ( argType == 'p' && CAN_ADDRESS_2GB ) {
173- argConvertions += ` ${ name } >>>= 0;\n` ;
173+ argConversions += ` ${ name } >>>= 0;\n` ;
174174 newArgs . push ( name ) ;
175175 } else {
176176 newArgs . push ( name ) ;
@@ -187,17 +187,17 @@ function runJSify() {
187187 // For functions that where we need to mutate the return value, we
188188 // also need to wrap the body in an inner function.
189189 if ( oneliner ) {
190- if ( argConvertions ) {
190+ if ( argConversions ) {
191191 return `${ async_ } (${ args } ) => {
192- ${ argConvertions }
192+ ${ argConversions }
193193 return ${ makeReturn64 ( body ) } ;
194194}`
195195 }
196196 return `${ async_ } (${ args } ) => ${ makeReturn64 ( body ) } ;`
197197 }
198198 return `\
199199${ async_ } function(${ args } ) {
200- ${ argConvertions }
200+ ${ argConversions }
201201 var ret = (() => { ${ body } })();
202202 return ${ makeReturn64 ( 'ret' ) } ;
203203}` ;
@@ -210,7 +210,7 @@ ${argConvertions}
210210 }
211211 return `\
212212${ async_ } function(${ args } ) {
213- ${ argConvertions }
213+ ${ argConversions }
214214 ${ body } ;
215215}` ;
216216 } ) ;
@@ -514,7 +514,7 @@ function(${args}) {
514514 // in library.js and library_pthread.js. These happen before deps are
515515 // processed so depending on it via `__deps` doesn't work.
516516 if ( dep === '$noExitRuntime' ) {
517- error ( 'noExitRuntime cannot be referenced via __deps mechansim . Use DEFAULT_LIBRARY_FUNCS_TO_INCLUDE or EXPORTED_RUNTIME_METHODS' )
517+ error ( 'noExitRuntime cannot be referenced via __deps mechanism . Use DEFAULT_LIBRARY_FUNCS_TO_INCLUDE or EXPORTED_RUNTIME_METHODS' )
518518 }
519519 return addFromLibrary ( dep , `${ symbol } , referenced by ${ dependent } ` , dep === aliasTarget ) ;
520520 }
0 commit comments