diff --git a/test/staging/sm/Array/group.js b/test/staging/sm/Array/group.js index 128b92956e..425fb0af4e 100644 --- a/test/staging/sm/Array/group.js +++ b/test/staging/sm/Array/group.js @@ -3,8 +3,6 @@ /*--- includes: [deepEqual.js] -flags: - - noStrict description: | pending esid: pending @@ -90,8 +88,8 @@ Object.defineProperty(Object.prototype, "foo", { Object.groupBy([1, 2, 3], () => 'foo'); // Ensure property key is correctly accessed -count = 0; -p = Object.groupBy([1], () => ({ toString() { count++; return 10 } })); +let count = 0; +const p = Object.groupBy([1], () => ({ toString() { count++; return 10 } })); assert.sameValue(count, 1); Map.groupBy([1], () => ({ toString() { count++; return 10 } })); assert.sameValue(count, 1); diff --git a/test/staging/sm/Array/regress-386030.js b/test/staging/sm/Array/regress-386030.js index 147fd58363..e61f01039a 100644 --- a/test/staging/sm/Array/regress-386030.js +++ b/test/staging/sm/Array/regress-386030.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | Array.reduce should ignore holes esid: pending @@ -21,6 +19,8 @@ function test() function add(a, b) { return a + b; } function testreduce(v) { return v == 3 ? "PASS" : "FAIL"; } + var a; + expect = 'PASS'; try { diff --git a/test/staging/sm/Array/toLocaleString-01.js b/test/staging/sm/Array/toLocaleString-01.js index 78db3b5b38..21454d6215 100644 --- a/test/staging/sm/Array/toLocaleString-01.js +++ b/test/staging/sm/Array/toLocaleString-01.js @@ -4,8 +4,6 @@ */ /*--- -flags: - - noStrict description: | Array.prototype.toLocaleString esid: pending @@ -20,7 +18,7 @@ o = {}; assert.sameValue(Array.prototype.toLocaleString.call(o), ""); var log = ''; -arr = {length: {valueOf: function () { log += "L"; return 2; }}, +var arr = {length: {valueOf: function () { log += "L"; return 2; }}, 0: "x", 1: "z"}; assert.sameValue(Array.prototype.toLocaleString.call(arr), "x,z"); assert.sameValue(log, "L");