Files
test-repo/tests/strings/strings.js
T
Christopher Chedeau 6f5df0e2b6 Change test to workaround babylon bug (#184)
Babylon has a bug where it doesn't escape DirectiveLiteral properly. Except for `'use strict';`, this never happens in real world code, so let's put strings in a array in order to workaround this bug and have the same output on both parsers.

https://github.com/babel/babylon/issues/289
2017-01-13 23:17:02 -05:00

24 lines
137 B
JavaScript

[
"abc",
'abc',
'\'',
'"',
'\"',
'\\"',
"'",
"\'",
"\\'",
"'\"",
'\'"',
'\\',
"\\",
'\0',
'🐶',
];