From 0479ff0c54e8eea90ff5471bd9f77cb7f2e355c3 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 8 Apr 2017 16:46:25 +0800 Subject: fix a couple of bugs in `global_defs` (#1802) - `optimize()` substituted expression - compute nested property string correctly fixes #1801 Miscellaneous - reset optimisation flags on all node types --- test/compress/global_defs.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/compress/global_defs.js') diff --git a/test/compress/global_defs.js b/test/compress/global_defs.js index a69d031e..f1ba8f32 100644 --- a/test/compress/global_defs.js +++ b/test/compress/global_defs.js @@ -145,3 +145,18 @@ mixed: { 'WARN: global_defs CONFIG.VALUE redefined [test/compress/global_defs.js:129,8]', ] } + +issue_1801: { + options = { + booleans: true, + global_defs: { + "CONFIG.FOO.BAR": true, + }, + } + input: { + console.log(CONFIG.FOO.BAR); + } + expect: { + console.log(!0); + } +} -- cgit v1.2.3 ub right'>
aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-archive.sh
AgeCommit message (Expand)Author
2020-12-15serialization: 'restore-file' sets canonical timestamp and permissions....Ludovic Courtès
2020-09-28tests: Simplify shell exit status negation;...Eric Bavier