mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 14:31:28 +00:00
Implicitly alias stdlib exports as program globals, see #8
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
const EMPTY: String = changetype<String>("");
|
||||
|
||||
@global
|
||||
export class String {
|
||||
// [key: number]: string;
|
||||
|
||||
@ -197,13 +196,11 @@ function isWhiteSpaceOrLineTerminator(c: u16): bool {
|
||||
}
|
||||
}
|
||||
|
||||
// @global
|
||||
// @binding(CALL, [ STRING, PASS_THRU ], PASS_THRU)
|
||||
export function parseInt(str: string, radix: i32 = 10): f64 {
|
||||
throw new Error("not implemented");
|
||||
}
|
||||
|
||||
// @global
|
||||
// @binding(CALL, [ STRING ], PASS_THRU)
|
||||
export function parseFloat(str: string): f64 {
|
||||
throw new Error("not implemented");
|
||||
|
Reference in New Issue
Block a user