diff --git a/test/staging/sm/Function/function-caller-restrictions.js b/test/staging/sm/Function/function-caller-restrictions.js index f7a71f9981..8d5bc77038 100644 --- a/test/staging/sm/Function/function-caller-restrictions.js +++ b/test/staging/sm/Function/function-caller-restrictions.js @@ -8,6 +8,7 @@ description: | pending esid: pending ---*/ + // Function#caller restrictions as proposed by // https://github.com/claudepache/es-legacy-function-reflection/ @@ -32,7 +33,3 @@ assert.sameValue([0].map(caller)[0], null); assert.sameValue(function*() { yield caller(); }().next().value, null); - - -if (typeof assert.sameValue === "function") { -} diff --git a/test/staging/sm/Number/toExponential-values.js b/test/staging/sm/Number/toExponential-values.js index 40a910429e..bceef44ff4 100644 --- a/test/staging/sm/Number/toExponential-values.js +++ b/test/staging/sm/Number/toExponential-values.js @@ -8,6 +8,7 @@ description: | pending esid: pending ---*/ + let values = [ [-0, undefined, "0e+0"], [-0, 0, "0e+0"], @@ -122,6 +123,3 @@ let values = [ for (let [val, prec, expected] of values) { assert.sameValue(Number.prototype.toExponential.call(val, prec), expected); } - -if (typeof assert.sameValue === "function") { -} diff --git a/test/staging/sm/Number/toFixed-values.js b/test/staging/sm/Number/toFixed-values.js index d7f6b78f2f..aba0b46dfb 100644 --- a/test/staging/sm/Number/toFixed-values.js +++ b/test/staging/sm/Number/toFixed-values.js @@ -8,6 +8,7 @@ description: | pending esid: pending ---*/ + let values = [ [-0, undefined, "0"], [-0, 0, "0"], @@ -122,6 +123,3 @@ let values = [ for (let [val, prec, expected] of values) { assert.sameValue(Number.prototype.toFixed.call(val, prec), expected); } - -if (typeof assert.sameValue === "function") { -} diff --git a/test/staging/sm/Number/toPrecision-values.js b/test/staging/sm/Number/toPrecision-values.js index 91812febe1..bb1378d0a1 100644 --- a/test/staging/sm/Number/toPrecision-values.js +++ b/test/staging/sm/Number/toPrecision-values.js @@ -8,6 +8,7 @@ description: | pending esid: pending ---*/ + let values = [ [-0, undefined, "0"], [-0, 1, "0"], @@ -104,6 +105,3 @@ let values = [ for (let [val, prec, expected] of values) { assert.sameValue(Number.prototype.toPrecision.call(val, prec), expected); } - -if (typeof assert.sameValue === "function") { -} diff --git a/test/staging/sm/expressions/constant-folded-labeled-statement.js b/test/staging/sm/expressions/constant-folded-labeled-statement.js index bc4982a0e7..07aa0af459 100644 --- a/test/staging/sm/expressions/constant-folded-labeled-statement.js +++ b/test/staging/sm/expressions/constant-folded-labeled-statement.js @@ -12,7 +12,6 @@ esid: pending if (typeof disassemble === "function") { var code = disassemble(() => { x: 2+2; }); - if (typeof assert.sameValue === "function") - assert.sameValue(true, /Int8 4/.test(code)); + assert.sameValue(true, /Int8 4/.test(code)); } diff --git a/test/staging/sm/global/globalThis-enumeration.js b/test/staging/sm/global/globalThis-enumeration.js index e8f5d9684e..8b1ca28441 100644 --- a/test/staging/sm/global/globalThis-enumeration.js +++ b/test/staging/sm/global/globalThis-enumeration.js @@ -8,7 +8,5 @@ description: | pending esid: pending ---*/ -assert.sameValue(Object.getOwnPropertyNames(this).includes('globalThis'), true); -if (typeof assert.sameValue === "function") { -} +assert.sameValue(Object.getOwnPropertyNames(this).includes('globalThis'), true);