From 93f3b2b114877af17db219e501ae4551df61738d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Mon, 11 Dec 2017 01:15:44 +0800 Subject: escape consecutive unpaired surrogates (#2576) fixes #2569 --- test/compress/unicode.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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]");' +} -- cgit v1.2.3