@@ -69,7 +69,7 @@ function isDefined(symName) {
69
69
if ( symName == '__main_argc_argv' && SIDE_MODULE_EXPORTS . has ( 'main' ) ) {
70
70
return true ;
71
71
}
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
73
73
// always be considered as defined.
74
74
if ( RELOCATABLE && symName . startsWith ( 'invoke_' ) ) {
75
75
return true ;
@@ -138,22 +138,22 @@ function runJSify() {
138
138
}
139
139
140
140
function handleI64Signatures ( symbol , snippet , sig , i53abi ) {
141
- // Handle i64 paramaters and return values.
141
+ // Handle i64 parameters and return values.
142
142
//
143
143
// When WASM_BIGINT is enabled these arrive as BigInt values which we
144
144
// convert to int53 JS numbers. If necessary, we also convert the return
145
145
// value back into a BigInt.
146
146
//
147
147
// 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
149
149
// split the return value into a pair of i32 numbers.
150
150
return modifyJSFunction ( snippet , ( args , body , async_ , oneliner ) => {
151
151
let argLines = args . split ( '\n' ) ;
152
152
argLines = argLines . map ( ( line ) => line . split ( '//' ) [ 0 ] ) ;
153
153
const argNames = argLines . join ( ' ' ) . split ( ',' ) . map ( ( name ) => name . trim ( ) ) ;
154
154
const newArgs = [ ] ;
155
155
let innerArgs = [ ] ;
156
- let argConvertions = '' ;
156
+ let argConversions = '' ;
157
157
if ( sig . length > argNames . length + 1 ) {
158
158
error ( `handleI64Signatures: signature too long for ${ symbol } ` ) ;
159
159
return snippet ;
@@ -164,13 +164,13 @@ function runJSify() {
164
164
// here, which will result in the default case below.
165
165
const argType = sig [ i + 1 ] ;
166
166
if ( WASM_BIGINT && ( ( MEMORY64 && argType == 'p' ) || ( i53abi && argType == 'j' ) ) ) {
167
- argConvertions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
167
+ argConversions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
168
168
} else {
169
169
if ( argType == 'j' && i53abi ) {
170
- argConvertions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
170
+ argConversions += ` ${ receiveI64ParamAsI53 ( name , undefined , false ) } \n` ;
171
171
newArgs . push ( defineI64Param ( name ) ) ;
172
172
} else if ( argType == 'p' && CAN_ADDRESS_2GB ) {
173
- argConvertions += ` ${ name } >>>= 0;\n` ;
173
+ argConversions += ` ${ name } >>>= 0;\n` ;
174
174
newArgs . push ( name ) ;
175
175
} else {
176
176
newArgs . push ( name ) ;
@@ -187,17 +187,17 @@ function runJSify() {
187
187
// For functions that where we need to mutate the return value, we
188
188
// also need to wrap the body in an inner function.
189
189
if ( oneliner ) {
190
- if ( argConvertions ) {
190
+ if ( argConversions ) {
191
191
return `${ async_ } (${ args } ) => {
192
- ${ argConvertions }
192
+ ${ argConversions }
193
193
return ${ makeReturn64 ( body ) } ;
194
194
}`
195
195
}
196
196
return `${ async_ } (${ args } ) => ${ makeReturn64 ( body ) } ;`
197
197
}
198
198
return `\
199
199
${ async_ } function(${ args } ) {
200
- ${ argConvertions }
200
+ ${ argConversions }
201
201
var ret = (() => { ${ body } })();
202
202
return ${ makeReturn64 ( 'ret' ) } ;
203
203
}` ;
@@ -210,7 +210,7 @@ ${argConvertions}
210
210
}
211
211
return `\
212
212
${ async_ } function(${ args } ) {
213
- ${ argConvertions }
213
+ ${ argConversions }
214
214
${ body } ;
215
215
}` ;
216
216
} ) ;
@@ -514,7 +514,7 @@ function(${args}) {
514
514
// in library.js and library_pthread.js. These happen before deps are
515
515
// processed so depending on it via `__deps` doesn't work.
516
516
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' )
518
518
}
519
519
return addFromLibrary ( dep , `${ symbol } , referenced by ${ dependent } ` , dep === aliasTarget ) ;
520
520
}
0 commit comments