feat(codemode): expand standard library parity (#37943)
This commit is contained in:
parent
c7aa47c144
commit
3da0dea8e7
11 changed files with 171 additions and 15 deletions
|
|
@ -13,6 +13,14 @@ export class CodeModeRegExp {
|
|||
constructor(pattern: string, flags: string) {
|
||||
this.regex = new RegExp(pattern, flags)
|
||||
}
|
||||
|
||||
get lastIndex(): unknown {
|
||||
return Reflect.get(this.regex, "lastIndex")
|
||||
}
|
||||
|
||||
set lastIndex(value: unknown) {
|
||||
Reflect.set(this.regex, "lastIndex", value)
|
||||
}
|
||||
}
|
||||
|
||||
export class CodeModeMap {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue