declare var math ; declare var tonumber ; Infinity = tonumber ( "1e+1000" ) ; function decodeURIComponent ( s ) { return s ; } function parseInt ( v ) { if ( v == undefined ) { return 0 / 0 ; } const num = tonumber ( v ) ; if ( num === null ) { return 0 / 0 ; } return math . floor ( num ) ; } function parseFloat ( v ) { if ( v == undefined ) { return 0 / 0 ; } const num = tonumber ( v ) ; if ( num === null ) { return 0 / 0 ; } return num ; } function isNaN ( v ) { return tostring ( v ) == tostring ( 0 / 0 ) ; } function isFinite ( v ) { return tostring ( v ) == tostring ( 1 / 0 ) ; }