aboutsummaryrefslogtreecommitdiff
path: root/test/compress/string-literal.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/string-literal.js')
-rw-r--r--test/compress/string-literal.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/compress/string-literal.js b/test/compress/string-literal.js
index 1138fed8..5f49fb3e 100644
--- a/test/compress/string-literal.js
+++ b/test/compress/string-literal.js
@@ -14,6 +14,13 @@ issue_1929: {
function f(s) {
return s.split(/[\\/]/);
}
+ console.log(JSON.stringify(f("A/B\\C\\D/E\\F")));
}
- expect_exact: "function f(s){return s.split(/[\\\\/]/)}"
+ expect: {
+ function f(s) {
+ return s.split(/[\\/]/);
+ }
+ console.log(JSON.stringify(f("A/B\\C\\D/E\\F")));
+ }
+ expect_stdout: '["A","B","C","D","E","F"]'
}