35803db2e6
Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`. Fixes issue #318.
4 lines
187 B
Plaintext
4 lines
187 B
Plaintext
==== tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression2.ts (1 errors) ====
|
|
href.match(/:\/\/(.[^/]+)/)[1];
|
|
~~~~
|
|
!!! Cannot find name 'href'. |