File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -904,14 +904,14 @@ function defineI64Param(name) {
904
904
905
905
906
906
function receiveI64ParamAsI53 ( name , onError , handleErrors = true ) {
907
- var errorHandler = handleErrors ? `if (isNaN(${ name } )) return ${ onError } ` : '' ;
907
+ var errorHandler = handleErrors ? `if (isNaN(${ name } )) { return ${ onError } ; }` : '' ;
908
908
if ( WASM_BIGINT ) {
909
909
// Just convert the bigint into a double.
910
- return `${ name } = bigintToI53Checked(${ name } );${ errorHandler } ; ` ;
910
+ return `${ name } = bigintToI53Checked(${ name } );${ errorHandler } ` ;
911
911
}
912
912
// Convert the high/low pair to a Number, checking for
913
913
// 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 } ` ;
915
915
}
916
916
917
917
function receiveI64ParamAsI53Unchecked ( name ) {
You can’t perform that action at this time.
0 commit comments