mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
14 lines
381 B
TypeScript
14 lines
381 B
TypeScript
|
@global
|
||
|
class RegExp {
|
||
|
|
||
|
// @binding(CALL_NEW, [ STRING, STRING], OBJECT_HANDLE)
|
||
|
constructor(pattern: string, flags: string = "") { throw new Error("unreachable"); }
|
||
|
|
||
|
// @binding(CALL_THIS, [ STRING ], PASS_THRU)
|
||
|
test(search: string): bool { throw new Error("unreachable"); }
|
||
|
|
||
|
// @binding(CALL_THIS, [], STRING)
|
||
|
toString(): string { throw new Error("unreachable"); }
|
||
|
|
||
|
}
|