aboutsummaryrefslogtreecommitdiff
path: root/test/compress/collapse_vars.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r--test/compress/collapse_vars.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js
index b3617816..f56face6 100644
--- a/test/compress/collapse_vars.js
+++ b/test/compress/collapse_vars.js
@@ -4190,3 +4190,37 @@ return_3: {
}
expect_stdout: "0"
}
+
+issue_2858: {
+ options = {
+ collapse_vars: true,
+ unused: true,
+ }
+ input: {
+ var b;
+ (function() {
+ function f() {
+ a++;
+ }
+ f();
+ var c = f();
+ var a = void 0;
+ c || (b = a);
+ })();
+ console.log(b);
+ }
+ expect: {
+ var b;
+ (function() {
+ function f() {
+ a++;
+ }
+ f();
+ var c = f();
+ var a = void 0;
+ c || (b = a);
+ })();
+ console.log(b);
+ }
+ expect_stdout: "undefined"
+}
'>* gnu/packages/xfce.scm (xfce4-weather-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-places-plugin....* gnu/packages/xfce.scm (xfce4-places-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-equake-plugin....* gnu/packages/xfce.scm (xfce4-equake-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-mailwatch-plugin....* gnu/packages/xfce.scm (xfce4-mailwatch-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-statusnotifier-plugin....* gnu/packages/xfce.scm (xfce4-statusnotifier-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-stopwatch-plugin....* gnu/packages/xfce.scm (xfce4-stopwatch-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-netload-plugin....* gnu/packages/xfce.scm (xfce4-netload-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-kbdleds-plugin....* gnu/packages/xfce.scm (xfce4-kbdleds-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-genmon-plugin....* gnu/packages/xfce.scm (xfce4-genmon-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-time-out-plugin....* gnu/packages/xfce.scm (xfce4-time-out-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-mpc-plugin....* gnu/packages/xfce.scm (xfce4-mpc-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-fsguard-plugin....* gnu/packages/xfce.scm (xfce4-fsguard-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-diskperf-plugin....* gnu/packages/xfce.scm (xfce4-diskperf-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-cpufreq-plugin....* gnu/packages/xfce.scm (xfce4-cpufreq-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-calculator-plugin....* gnu/packages/xfce.scm (xfce4-calculator-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-datetime-plugin....* gnu/packages/xfce.scm (xfce4-datetime-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-embed-plugin....* gnu/packages/xfce.scm (xfce4-embed-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-eyes-plugin....* gnu/packages/xfce.scm (xfce4-eyes-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-cpugraph-plugin....* gnu/packages/xfce.scm (xfce4-cpugraph-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-mount-plugin....* gnu/packages/xfce.scm (xfce4-mount-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-smartbookmark-plugin....* gnu/packages/xfce.scm (xfce4-smartbookmark-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-systemload-plugin....* gnu/packages/xfce.scm (xfce4-systemload-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-timer-plugin....* gnu/packages/xfce.scm (xfce4-timer-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-verve-plugin....* gnu/packages/xfce.scm (xfce4-verve-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-04gnu: Add xfce4-wavelan-plugin....* gnu/packages/xfce.scm (xfce4-wavelan-plugin): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-10-02gnu: Add xfce4-volumed-pulse....* gnu/packages/xfce.scm: Add xfce4-volumed-pulse. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Ingo Ruhnke 2019-09-29gnu: xfce4-pulseaudio-plugin: Adjust for GCC7 search path change....* gnu/packages/xfce.scm (xfce4-pulseaudio-plugin)[arguments]: Gracefully handle a missing C_INCLUDE_PATH. Marius Bakke