File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -904,14 +904,14 @@ function defineI64Param(name) {
904904
905905
906906function receiveI64ParamAsI53 ( name , onError , handleErrors = true ) {
907- var errorHandler = handleErrors ? `if (isNaN(${ name } )) return ${ onError } ` : '' ;
907+ var errorHandler = handleErrors ? `if (isNaN(${ name } )) { return ${ onError } ; }` : '' ;
908908 if ( WASM_BIGINT ) {
909909 // Just convert the bigint into a double.
910- return `${ name } = bigintToI53Checked(${ name } );${ errorHandler } ; ` ;
910+ return `${ name } = bigintToI53Checked(${ name } );${ errorHandler } ` ;
911911 }
912912 // Convert the high/low pair to a Number, checking for
913913 // overflow of the I53 range and returning onError in that case.
914- return `var ${ name } = convertI32PairToI53Checked(${ name } _low, ${ name } _high);${ errorHandler } ; ` ;
914+ return `var ${ name } = convertI32PairToI53Checked(${ name } _low, ${ name } _high);${ errorHandler } ` ;
915915}
916916
917917function receiveI64ParamAsI53Unchecked ( name ) {
You can’t perform that action at this time.
0 commit comments