aboutsummaryrefs
aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r--test/compress/evaluate.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 597c7c87..c92e82bd 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -847,6 +847,8 @@ unsafe_charAt_noop: {
unsafe: true,
}
input: {
+ s = "foo";
+ x = 42;
console.log(
s.charAt(0),
"string".charAt(x),
@@ -854,12 +856,15 @@ unsafe_charAt_noop: {
);
}
expect: {
+ s = "foo";
+ x = 42;
console.log(
- s[0],
- "string"[0 | x],
- (typeof x)[0]
+ s[0] || "",
+ "string"[0 | x] || "",
+ (typeof x)[0] || ""
);
}
+ expect_stdout: "f n"
}
issue_1649: {
td class='ls-size'>6437logplainabout -rw-r--r--channels.scm9093logplainabout -rw-r--r--combinators.scm3045logplainabout -rw-r--r--containers.scm7732logplainabout -rw-r--r--cpan.scm4522logplainabout -rw-r--r--cpio.scm3154logplainabout -rw-r--r--cran.scm5041logplainabout -rw-r--r--crate.scm3334logplainabout -rw-r--r--cve-sample.xml43360logplainabout -rw-r--r--cve.scm2321logplainabout -rw-r--r--debug-link.scm6709logplainabout -rw-r--r--derivations.scm57708logplainabout -rw-r--r--discovery.scm2540logplainabout -rw-r--r--elpa.scm3925logplainabout -rw-r--r--file-systems.scm2686logplainabout -rw-r--r--gem.scm6518logplainabout -rw-r--r--gexp.scm56604logplainabout -rw-r--r--glob.scm2331logplainabout -rw-r--r--gnu-maintenance.scm1688logplainabout -rw-r--r--grafts.scm22788logplainabout -rw-r--r--graph.scm16991logplainabout -rw-r--r--gremlin.scm3478logplainabout -rw-r--r--guix-archive.sh2656logplainabout -rw-r--r--guix-authenticate.sh2963logplainabout -rw-r--r--guix-build-branch.sh1973logplainabout -rw-r--r--guix-build.sh8529logplainabout -rw-r--r--guix-daemon.sh7820logplainabout -rw-r--r--guix-describe.sh1405logplainabout -rw-r--r--guix-download.sh1593logplainabout -rw-r--r--guix-environment-container.sh5286logplainabout -rw-r--r--guix-environment.sh8868logplainabout -rw-r--r--guix-gc.sh2819logplainabout -rw-r--r--guix-graph.sh1812logplainabout -rw-r--r--guix-hash.sh2266logplainabout -rw-r--r--guix-lint.sh2276logplainabout -rw-r--r--guix-pack-localstatedir.sh2565logplainabout -rw-r--r--guix-pack-relocatable.sh3037logplainabout -rw-r--r--guix-pack.sh4095logplainabout -rw-r--r--guix-package-aliases.sh1729logplainabout -rw-r--r--guix-package-net.sh7289logplainabout -rw-r--r--guix-package.sh14129logplainabout -rw-r--r--guix-system.sh8522logplainabout -rw-r--r--hackage.scm7354logplainabout -rw-r--r--import-utils.scm4390logplainabout -rw-r--r--inferior.scm9657logplainabout -rw-r--r--lint.scm33081logplainabout -rw-r--r--lzlib.scm4821logplainabout -rw-r--r--modules.scm2582logplainabout -rw-r--r--monads.scm9099logplainabout -rw-r--r--nar.scm18645logplainabout -rw-r--r--opam.scm7872logplainabout -rw-r--r--pack.scm10132logplainabout -rw-r--r--packages.scm55742logplainabout -rw-r--r--pki.scm5220logplainabout -rw-r--r--print.scm2133logplainabout -rw-r--r--processes.scm3559logplainabout -rw-r--r--profiles.scm28506logplainabout -rw-r--r--publish.scm26015logplainabout -rw-r--r--pypi.scm8276logplainabout -rw-r--r--records.scm14053logplainabout -rw-r--r--scripts-build.scm12015logplainabout -rw-r--r--scripts.scm2034logplainabout -rw-r--r--search-paths.scm1765logplainabout -rw-r--r--services.scm11601logplainabout -rw-r--r--sets.scm1507logplainabout -rw-r--r--signing-key.pub302logplainabout -rw-r--r--signing-key.sec983logplainabout -rw-r--r--size.scm4576logplainabout -rw-r--r--snix.scm2504logplainabout -rw-r--r--status.scm12235logplainabout -rw-r--r--store-database.scm3718logplainabout -rw-r--r--store-deduplication.scm4533logplainabout -rw-r--r--store-roots.scm1899logplainabout -rw-r--r--store.scm49370logplainabout -rw-r--r--substitute.scm21832logplainabout -rw-r--r--syscalls.scm19357logplainabout -rw-r--r--system.scm5143logplainabout -rw-r--r--test.drv5922logplainabout -rw-r--r--texlive.scm4413logplainabout -rw-r--r--ui.scm7577logplainabout -rw-r--r--union.scm9548logplainabout -rw-r--r--upstream.scm1963logplainabout -rw-r--r--utils.scm9498logplainabout -rw-r--r--uuid.scm2755logplainabout -rw-r--r--workers.scm2172logplainabout -rw-r--r--zlib.scm2237logplainabout