Closed jonoward closed 9 years ago
The following regex, which is valid and executes in browsers correctly, causes a parser error: /=*$/
Repro: Go to: http://google.github.io/traceur-compiler/demo/repl.html
Input: "abc=".replace(/=*$/, '');
Generates error: traceured.js:1:16: Expected regular expression first char,traceured.js:1:21: Unexpected token ,,traceured.js:1:23: Unexpected token '',traceured.js:1:25: Semi-colon expected,traceured.js:1:25: Unexpected token )
The following regex, which is valid and executes in browsers correctly, causes a parser error: /=*$/
Repro: Go to: http://google.github.io/traceur-compiler/demo/repl.html
Input: "abc=".replace(/=*$/, '');
Generates error: traceured.js:1:16: Expected regular expression first char,traceured.js:1:21: Unexpected token ,,traceured.js:1:23: Unexpected token '',traceured.js:1:25: Semi-colon expected,traceured.js:1:25: Unexpected token )