diff options
Diffstat (limited to 'test/compress/global_defs.js')
-rw-r--r-- | test/compress/global_defs.js | 14 |
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); + } +} |