1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-06-23 19:51:47 +00:00
Files
bin
dist
examples
lib
media
scripts
snap
src
std
assembly
allocator
collector
internal
array.ts
arraybuffer.ts
builtins.ts
error.ts
iterator.ts
map.ts
math.ts
memory.ts
polyfills.ts
regexp.ts
set.ts
string.ts
tsconfig.json
typedarray.ts
portable
README.md
assembly.d.ts
assembly.json
portable.d.ts
portable.js
portable.json
tests
.gitattributes
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
NOTICE
README.md
index.d.ts
index.js
package-lock.json
package.json
tsconfig-base.json
tsconfig-docs.json
tslint.json
webpack.config.js
assemblyscript/std/assembly/regexp.ts

13 lines
380 B
TypeScript
Raw Normal View History

export 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"); }
}