Fix parseInt routines after refactoring (#655)

This commit is contained in:
Max Graey
2019-06-12 11:17:01 +03:00
committed by Daniel Wirtz
parent 40dac8269d
commit f9a77b132f
9 changed files with 3142 additions and 1927 deletions

View File

@ -120,8 +120,6 @@ declare function isConstant(expression: any): bool;
declare function assert<T>(isTrueish: T | null, message?: string): T;
/** Parses an integer string to a 64-bit float. */
declare function parseInt(str: string, radix?: i32): f64;
/** Parses an integer string to a 32-bit integer. */
declare function parseI32(str: string, radix?: i32): i32;
/** Parses a floating point string to a 64-bit float. */
declare function parseFloat(str: string): f64;
/** Returns the 64-bit floating-point remainder of `x/y`. */

View File

@ -188,10 +188,6 @@ globalScope["changetype"] = function changetype(value) {
return value;
};
globalScope["parseI32"] = function parseI32(str, radix) {
return parseInt(str, undefined) | 0;
};
String["fromCharCodes"] = function fromCharCodes(arr) {
return String.fromCharCode.apply(String, arr);
};