mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-29 22:51:46 +00:00
Regexp literal support; Properly resolve statically inherited members
This commit is contained in:
18
tests/parser/regexp.ts
Normal file
18
tests/parser/regexp.ts
Normal file
@ -0,0 +1,18 @@
|
||||
// with modifiers
|
||||
/(abc)\//ig;
|
||||
|
||||
// without modifiers
|
||||
/(abc)\//;
|
||||
|
||||
// can be assigned
|
||||
var re = /(abc)\//ig;
|
||||
|
||||
// generally behaves like an expression
|
||||
var noRe = !/(abc)\//i;
|
||||
|
||||
// inner line break is unterminated
|
||||
/a
|
||||
b/ig;
|
||||
|
||||
// just a comment
|
||||
//ig;
|
Reference in New Issue
Block a user