aboutsummaryrefslogtreecommitdiff
path: root/test/compress/const.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/const.js')
-rw-r--r--test/compress/const.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/compress/const.js b/test/compress/const.js
index 4306fff2..fce6ebea 100644
--- a/test/compress/const.js
+++ b/test/compress/const.js
@@ -1498,3 +1498,40 @@ issue_4691: {
}
expect_stdout: "PASS"
}
+
+issue_4848: {
+ options = {
+ if_return: true,
+ }
+ input: {
+ function f(a) {
+ a(function() {
+ console.log(b);
+ });
+ if (!console)
+ return;
+ const b = "PASS";
+ }
+ var g;
+ f(function(h) {
+ g = h;
+ });
+ g();
+ }
+ expect: {
+ function f(a) {
+ a(function() {
+ console.log(b);
+ });
+ if (!console)
+ return;
+ const b = "PASS";
+ }
+ var g;
+ f(function(h) {
+ g = h;
+ });
+ g();
+ }
+ expect_stdout: "PASS"
+}
018-01-07 23:47:22 +0100'>2018-01-07daemon: Add gzip log compression....* nix/nix-daemon/guix-daemon.cc (GUIX_OPT_LOG_COMPRESSION): New macro. (options): Mark "disable-log-compression" as hidden and add "log-compression". (parse_opt): Handle GUIX_OPT_LOG_COMPRESSION. * nix/libstore/build.cc (DerivationGoal): Add 'gzLogFile'. (openLogFile): Initialize it when 'logCompression' is COMPRESSION_GZIP. (closeLogFile, handleChildOutput): Honor 'gzLogFile'. * nix/libstore/globals.hh (Settings)[compressLog]: Remove. [logCompression]: New field. (CompressionType): New enum. * nix/libstore/globals.cc (Settings::Settings): Initialize it. (update): Remove '_get' call for 'compressLog'. * nix/local.mk (guix_daemon_LDADD, guix_register_LDADD): Add -lz. * guix/store.scm (log-file): Handle '.gz' log files. * tests/guix-daemon.sh: Add test with '--log-compression=gzip'. * doc/guix.texi (Invoking guix-daemon): Adjust accordingly. * config-daemon.ac: Check for libz and zlib.h. Ludovic Courtès