Move OctalEscapeSequence to read_escape_char
authorAnthony Van de Gejuchte <anthonyvdgent@gmail.com>
Thu, 23 Jun 2016 14:53:48 +0000 (16:53 +0200)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Thu, 30 Jun 2016 19:42:15 +0000 (21:42 +0200)
commit3a7d53f3cfa81fc8df3cd61c9adf0ce6c28ecd30
tree16d0118980abc4e12c9f68ef6e82fce87f310675
parent9676167aac715d2dd10918e2beb13b1a4a372616
Move OctalEscapeSequence to read_escape_char

This should simplify and improve implementation, make it easier to
implement template strings, and keep master a bit more in sync with
harmony.

Previous implementation wasn't broken, though the loop gave me the
impression it could read infinite numbers and annoyed me a bit. It was
also slightly unnecessary because the lookup involved only 3 characters.
lib/parse.js
test/compress/string-literal.js [new file with mode: 0644]
test/mocha/string-literal.js