aboutsummaryrefslogtreecommitdiff
path: root/test/mocha/string-literal.js
AgeCommit message (Collapse)Author
2017-02-27improve error messages (#1506)Alex Lam S.L
- better inheritance of `Error` sub-classes - mark parse error against source in CLI closes #235 closes #348 closes #524 closes #1356 closes #1405
2016-07-21Legacy octal integer strict mode fixesAnthony Van de Gejuchte
2016-06-30Various LineTerminator changesAnthony Van de Gejuchte
* Escaped newlines should also produce SyntaxError * Fix multiline comment parsing and add tests * Adapt makePredicate to handle \u2028 and \u2029 * Move up nlb check in regex so it's checked before any escape handling * Change error messages to conform ecma standard * Find_eol not recornizing \u2028 and \u2029 as line terminator * Remove \u180e as it is removed in unicode 6.3.0 from the category zs
2016-06-30Move OctalEscapeSequence to read_escape_charAnthony Van de Gejuchte
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.
2016-06-19Don't mix strings with directives in outputAnthony Van de Gejuchte
* Don't interpret strings with escaped content as directive * Don't interpret strings after empty statement as directive * Adapt output to prevent strings being represent as directive * Introduce UGLIFY_DEBUG to allow internal testing like EXPECT_DIRECTIVE
2016-06-12Fix octal string strict mode testsRichard van Velzen
2016-06-12Throw errors in strict mode for octal stringsAnthony Van de Gejuchte
Adds a directive tracker for the parser/tokenizer to allow parsing depending on directive context.
2016-01-13Add test case for line continuationAnthony Van de Gejuchte
2015-12-27Add mocha testsAnthony Van de Gejuchte