From e7401b59a7b33f10be821a116319e9e71949e8d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 13 Dec 2024 11:46:06 +0100 Subject: [PATCH] Remove broken if statements from SM staging tests --- .../block-scoped-functions-deprecated-redecl.js | 2 -- .../lexical-environment/block-scoped-functions-hoisted-tdz.js | 2 -- .../sm/lexical-environment/var-in-catch-body-annex-b-eval.js | 2 -- test/staging/sm/regress/regress-563221.js | 2 -- 4 files changed, 8 deletions(-) diff --git a/test/staging/sm/lexical-environment/block-scoped-functions-deprecated-redecl.js b/test/staging/sm/lexical-environment/block-scoped-functions-deprecated-redecl.js index 843a956ee0..c8aa36c263 100644 --- a/test/staging/sm/lexical-environment/block-scoped-functions-deprecated-redecl.js +++ b/test/staging/sm/lexical-environment/block-scoped-functions-deprecated-redecl.js @@ -84,5 +84,3 @@ try { } assert.sameValue(log, 'eee'); - -if ('assert.sameValue' in this) diff --git a/test/staging/sm/lexical-environment/block-scoped-functions-hoisted-tdz.js b/test/staging/sm/lexical-environment/block-scoped-functions-hoisted-tdz.js index 7dc9b7af85..92cdd308bc 100644 --- a/test/staging/sm/lexical-environment/block-scoped-functions-hoisted-tdz.js +++ b/test/staging/sm/lexical-environment/block-scoped-functions-hoisted-tdz.js @@ -36,5 +36,3 @@ try { } assert.sameValue(log, "truetrue"); - -if ("assert.sameValue" in this) diff --git a/test/staging/sm/lexical-environment/var-in-catch-body-annex-b-eval.js b/test/staging/sm/lexical-environment/var-in-catch-body-annex-b-eval.js index 0bb1f81e86..9dd8bedf53 100644 --- a/test/staging/sm/lexical-environment/var-in-catch-body-annex-b-eval.js +++ b/test/staging/sm/lexical-environment/var-in-catch-body-annex-b-eval.js @@ -27,5 +27,3 @@ g(); assert.sameValue(x, "global-x"); assert.sameValue(log, "42g"); - -if ("assert.sameValue" in this) diff --git a/test/staging/sm/regress/regress-563221.js b/test/staging/sm/regress/regress-563221.js index 972fc47ff8..dba73b1ac2 100644 --- a/test/staging/sm/regress/regress-563221.js +++ b/test/staging/sm/regress/regress-563221.js @@ -12,5 +12,3 @@ description: | esid: pending ---*/ "" + eval("(function () { if (x) ; else if (y) n(); else { " + Array(10000).join("e;") + " } });"); - -if (this.assert.sameValue)