termi / es6-transpiler

Tomorrow's JavaScript syntax today
Other
216 stars 18 forks source link

Bug with regexp polyfilling #60

Open yernende opened 9 years ago

yernende commented 9 years ago

Double quotes are not preceded by backslash when literal notation of regular expressions is converted to constructor notation.

/"word"/y; //is converted to new RegExp(""word"", "y")