You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The advantage of having the separate regex property is that even in environments that don’t support a given flag (e.g. the u flag) the regex can still be represented in the AST. The value property is null in such a case.
In Esprima,
/foo/gi
now gives:The advantage of having the separate
regex
property is that even in environments that don’t support a given flag (e.g. theu
flag) the regex can still be represented in the AST. Thevalue
property isnull
in such a case.See https://code.google.com/p/esprima/issues/detail?id=557#c4.
cc @sebmck @michaelficarra
The text was updated successfully, but these errors were encountered: