From 44394e61c95e29bcae68087d5ada2036be9b073d Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Tue, 23 Mar 2021 03:15:41 +0000 Subject: workaround `toString()` quirks on global context (#4814) --- test/compress/sandbox.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/compress/sandbox.js') 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" } -- cgit v1.2.3