aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-12-11 01:15:44 +0800
committerGitHub <noreply@github.com>2017-12-11 01:15:44 +0800
commit93f3b2b114877af17db219e501ae4551df61738d (patch)
tree30ab311ab09b9dc4f98b098c8d7fa3a84dc91393 /test
parentbf000beae710a2b4129bddb009bb706ff036fbb6 (diff)
downloadtracifyjs-93f3b2b114877af17db219e501ae4551df61738d.tar.gz
tracifyjs-93f3b2b114877af17db219e501ae4551df61738d.zip
escape consecutive unpaired surrogates (#2576)
fixes #2569
Diffstat (limited to 'test')
-rw-r--r--test/compress/unicode.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/compress/unicode.js b/test/compress/unicode.js
index 4dbc197c..c4bd5de8 100644
--- a/test/compress/unicode.js
+++ b/test/compress/unicode.js
@@ -55,3 +55,10 @@ issue_2242_4: {
}
expect_exact: 'console.log("\ud83d\ude00","\\ud83d@\\ude00");'
}
+
+issue_2569: {
+ input: {
+ new RegExp("[\udc42-\udcaa\udd74-\udd96\ude45-\ude4f\udea3-\udecc]");
+ }
+ expect_exact: 'new RegExp("[\\udc42-\\udcaa\\udd74-\\udd96\\ude45-\\ude4f\\udea3-\\udecc]");'
+}