aboutsummaryrefslogtreecommitdiff
path: root/test/compress/global_defs.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/global_defs.js')
-rw-r--r--test/compress/global_defs.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/global_defs.js b/test/compress/global_defs.js
index bfd1d5f6..d784d335 100644
--- a/test/compress/global_defs.js
+++ b/test/compress/global_defs.js
@@ -160,3 +160,17 @@ issue_1801: {
console.log(!0);
}
}
+
+issue_1986: {
+ options = {
+ global_defs: {
+ "@alert": "console.log",
+ },
+ }
+ input: {
+ alert(42);
+ }
+ expect: {
+ console.log(42);
+ }
+}