diff --git a/test/language/types/reference/8.7.2-2-s.js b/test/language/types/reference/8.7.2-2-s.js index 89fef04bd7..19da2c1f11 100644 --- a/test/language/types/reference/8.7.2-2-s.js +++ b/test/language/types/reference/8.7.2-2-s.js @@ -6,11 +6,8 @@ es5id: 8.7.2-2-s description: > ReferenceError isn't thrown if LeftHandSide evaluates to a resolvable Reference -includes: [runTestCase.js] ---*/ -function testcase() { var b = 11; - return b === 11; - } -runTestCase(testcase); + +assert.sameValue(b, 11, 'b'); diff --git a/test/language/types/reference/8.7.2-3-1-s.js b/test/language/types/reference/8.7.2-3-1-s.js index ca9f96c788..e6091d384f 100644 --- a/test/language/types/reference/8.7.2-3-1-s.js +++ b/test/language/types/reference/8.7.2-3-1-s.js @@ -4,11 +4,6 @@ /*--- es5id: 8.7.2-3-1-s description: eval - a property named 'eval' is permitted -includes: [runTestCase.js] ---*/ -function testcase() { var o = { eval: 42}; - return true; - } -runTestCase(testcase); diff --git a/test/language/types/reference/8.7.2-6-s.js b/test/language/types/reference/8.7.2-6-s.js index d0332303da..8822a11faf 100644 --- a/test/language/types/reference/8.7.2-6-s.js +++ b/test/language/types/reference/8.7.2-6-s.js @@ -6,10 +6,8 @@ es5id: 8.7.2-6-s description: > TypeError isn't thrown if LeftHandSide is a reference to a writable data property -includes: [runTestCase.js] ---*/ -function testcase() { var _8_7_2_6 = {}; Object.defineProperty(_8_7_2_6, "b", { writable: true @@ -17,6 +15,4 @@ function testcase() { _8_7_2_6.b = 11; - return _8_7_2_6.b === 11; - } -runTestCase(testcase); +assert.sameValue(_8_7_2_6.b, 11, '_8_7_2_6.b'); diff --git a/test/language/types/reference/8.7.2-7-s.js b/test/language/types/reference/8.7.2-7-s.js index d4c31f6f35..848b28f985 100644 --- a/test/language/types/reference/8.7.2-7-s.js +++ b/test/language/types/reference/8.7.2-7-s.js @@ -6,10 +6,8 @@ es5id: 8.7.2-7-s description: > TypeError isn't thrown if LeftHandSide is a reference to an accessor property with setter -includes: [runTestCase.js] ---*/ -function testcase() { var _8_7_2_7 = {}; var _8_7_2_7_bValue = 1; Object.defineProperty(_8_7_2_7, "b", { @@ -18,6 +16,5 @@ function testcase() { }); _8_7_2_7.b = 11; - return _8_7_2_7.b === 11; - } -runTestCase(testcase); + +assert.sameValue(_8_7_2_7.b, 11, '_8_7_2_7.b'); diff --git a/test/language/types/reference/8.7.2-8-s.js b/test/language/types/reference/8.7.2-8-s.js index 8f022c4abd..8408e3aa23 100644 --- a/test/language/types/reference/8.7.2-8-s.js +++ b/test/language/types/reference/8.7.2-8-s.js @@ -6,14 +6,10 @@ es5id: 8.7.2-8-s description: > TypeError isn't thrown if LeftHandSide is a reference to a property of an extensible object -includes: [runTestCase.js] ---*/ -function testcase() { var _8_7_2_8 = {}; _8_7_2_8.b = 11; - return _8_7_2_8.b === 11; - } -runTestCase(testcase); +assert.sameValue(_8_7_2_8.b, 11, '_8_7_2_8.b');