aboutsummaryrefslogtreecommitdiff
path: root/test/compress/sandbox.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-23 03:15:41 +0000
committerGitHub <noreply@github.com>2021-03-23 11:15:41 +0800
commit44394e61c95e29bcae68087d5ada2036be9b073d (patch)
tree8fbc33fe20d541919030f52f61cb5e1477f9b73e /test/compress/sandbox.js
parentf9055df44d86c8537afc34f00bd255792f80422f (diff)
downloadtracifyjs-44394e61c95e29bcae68087d5ada2036be9b073d.tar.gz
tracifyjs-44394e61c95e29bcae68087d5ada2036be9b073d.zip
workaround `toString()` quirks on global context (#4814)
Diffstat (limited to 'test/compress/sandbox.js')
-rw-r--r--test/compress/sandbox.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/compress/sandbox.js b/test/compress/sandbox.js
index f932dcf5..9111e319 100644
--- a/test/compress/sandbox.js
+++ b/test/compress/sandbox.js
@@ -176,13 +176,13 @@ issue_4054: {
issue_4811_1: {
input: {
for (var PASS in this);
- console.log(PASS, this);
+ console.log(PASS, this, {} < this);
}
expect: {
for (var PASS in this);
- console.log(PASS, this);
+ console.log(PASS, this, {} < this);
}
- expect_stdout: "PASS [object global]"
+ expect_stdout: "PASS [object global] true"
}
issue_4811_2: {
@@ -192,12 +192,12 @@ issue_4811_2: {
input: {
(async function() {});
for (var PASS in this);
- console.log(PASS, this);
+ console.log(PASS, this, {} < this);
}
expect: {
for (var PASS in this);
- console.log(PASS, this);
+ console.log(PASS, this, {} < this);
}
- expect_stdout: "PASS [object global]"
+ expect_stdout: "PASS [object global] true"
node_version: ">=8"
}