From 143f9054da8790eee16758defdfdc927f48cf9b4 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 20 Mar 2019 14:54:26 +0800 Subject: fix corner case in `sequences` (#3350) --- test/compress/sequences.js | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'test/compress/sequences.js') diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 79b176e3..0670ab53 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -924,14 +924,14 @@ call: { b.c = function() { console.log(this === b ? "bar" : "baz"); }, - a, b(), + b(), (a, b.c)(), - a, function() { + function() { console.log(this === a); }(), - a, new b(), - a, new b.c(), - a, new function() { + new b(), + new b.c(), + new function() { console.log(this === a); }(); } @@ -944,3 +944,23 @@ call: { "false", ] } + +missing_link: { + options = { + conditionals: true, + evaluate: true, + sequences: true, + } + input: { + var a = 100; + a; + a++ + (0 ? 2 : 1); + console.log(a); + } + expect: { + var a = 100; + a, + a++, + console.log(a); + } +} -- cgit v1.2.3 treecommitdiff
path: root/etc/guix-install.sh
AgeCommit message (Expand)Author
2020-10-16guix-install.sh: Check the service 'nscd' and suggest it....zimoun
2020-10-16guix-install.sh: Add symbolic links for supported shell completions....zimoun
2020-09-17guix-install.sh: Support OpenRC....Morgan Smith
2020-09-17guix-install.sh: Be POSIX-compliant....Morgan Smith
2020-09-09guix-install.sh: Quote the OpenPGP key URL....Ludovic Courtès
2020-07-16guix-install.sh: Make sure /etc/profile is sourced....Tobias Geerinckx-Rice
2020-07-16guix-install.sh: Suggest running gpg as root....Tobias Geerinckx-Rice
2020-07-14etc: Enable mount unit only if it exists....Tobias Geerinckx-Rice
2020-05-23guix-install.sh: Fix ‘systemctl not found’ error message at probe....Vincent Legoll
2020-05-23guix-install.sh: Add xz to requirements....Vincent Legoll
2020-05-17etc: Install mount unit only if it exists....Tobias Geerinckx-Rice
2020-05-16etc: Add a systemd unit to bind-mount @storedir@ read-only....Tobias Geerinckx-Rice
2020-03-22guix-install.sh: /etc/profile.d/guix.sh sources ~/.guix-profile/etc/profile....Ludovic Courtès
2020-03-22guix-install.sh: Add a trailing colon to 'INFOPATH'....Ludovic Courtès
2020-03-11guix-install.sh: Install SysV init script....Danny Milosavljevic