diff options
Diffstat (limited to 'test/suite/ch08/8.7/8.7.2')
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js | 46 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js | 38 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js | 38 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js | 31 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js | 33 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js | 56 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js | 58 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js | 52 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js | 50 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js | 52 | ||||
-rw-r--r-- | test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js | 44 |
11 files changed, 258 insertions, 240 deletions
diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js index a7f5f5b2c..f94ec3e43 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-1-s.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-1-s.js
- * @description Strict Mode - ReferenceError is thrown if LeftHandSide evaluates to an unresolvable Reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("_8_7_2_1 = 11;");
- return false;
- } catch (e) {
- return e instanceof ReferenceError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if LeftHandSide evaluates + to an unresolvable Reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("_8_7_2_1 = 11;"); + return false; + } catch (e) { + return e instanceof ReferenceError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js index abbfbc7fe..65f2fcddd 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-2-s.js @@ -1,18 +1,20 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-2-s.js
- * @description Strict Mode - ReferenceError isn't thrown if LeftHandSide evaluates to a resolvable Reference
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var b = 11;
- return b === 11;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError isn't thrown if LeftHandSide + evaluates to a resolvable Reference +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var b = 11; + return b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js index 7695a3cb8..c3ccf5875 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-1-s.js @@ -1,19 +1,19 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-3-1-s.js
- * @description eval - a property named 'eval' is permitted
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
-
- var o = { eval: 42};
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: eval - a property named 'eval' is permitted +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + + var o = { eval: 42}; + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js index 88dc77f61..e9ae69021 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-1gs.js @@ -1,15 +1,16 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch08/8.7/8.7.2/8.7.2-3-a-1gs.js
- * @description Strict Mode - ReferenceError is thrown if LeftHandSide evaluate to an unresolvable Reference
- * @onlyStrict
- * @negative .
- */
-
-"use strict";
-b = 11;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - ReferenceError is thrown if LeftHandSide evaluate to + an unresolvable Reference +negative: . +flags: [onlyStrict] +---*/ + +"use strict"; +b = 11; diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js index 402e7dcfb..336e1da0c 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-a-2gs.js @@ -1,16 +1,17 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch08/8.7/8.7.2/8.7.2-3-a-2gs.js
- * @description Strict Mode - 'runtime' error is thrown before LeftHandSide evaluates to an unresolvable Reference
- * @onlyStrict
- * @negative NotEarlyError
- */
-
-"use strict";
-throw NotEarlyError;
-b = 11;
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - 'runtime' error is thrown before LeftHandSide + evaluates to an unresolvable Reference +negative: NotEarlyError +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; +b = 11; diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js index b61a53046..21a7c5f6c 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-3-s.js @@ -1,27 +1,29 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-3-s.js
- * @description Strict Mode - TypeError is thrown if LeftHandSide is a reference to a non-writable data property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_3 = {};
- Object.defineProperty(_8_7_2_3, "b", {
- writable: false
- });
-
- try {
- _8_7_2_3.b = 11;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if LeftHandSide is a reference + to a non-writable data property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_3 = {}; + Object.defineProperty(_8_7_2_3, "b", { + writable: false + }); + + try { + _8_7_2_3.b = 11; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js index f8bb3cfc2..f1bdbc500 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-4-s.js @@ -1,28 +1,30 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-4-s.js
- * @description Strict Mode - TypeError is thrown if LeftHandSide is a reference to an accessor property with no setter
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_4 = {};
- var _8_7_2_4_bValue = 1;
- Object.defineProperty(_8_7_2_4, "b", {
- get: function () { return _8_7_2_4_bValue; }
- });
-
- try {
- _8_7_2_4.b = 11;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if LeftHandSide is a reference + to an accessor property with no setter +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_4 = {}; + var _8_7_2_4_bValue = 1; + Object.defineProperty(_8_7_2_4, "b", { + get: function () { return _8_7_2_4_bValue; } + }); + + try { + _8_7_2_4.b = 11; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js index ece372934..c61c42878 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-5-s.js @@ -1,25 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-5-s.js
- * @description Strict Mode - TypeError is thrown if LeftHandSide is a reference to a non-existent property of an non-extensible object
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_5 = {};
- Object.preventExtensions(_8_7_2_5);
-
- try {
- _8_7_2_5.b = 11;
- return false;
- } catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError is thrown if LeftHandSide is a reference + to a non-existent property of an non-extensible object +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_5 = {}; + Object.preventExtensions(_8_7_2_5); + + try { + _8_7_2_5.b = 11; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js index 298485f94..184ee4b56 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-6-s.js @@ -1,24 +1,26 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-6-s.js
- * @description Strict Mode - TypeError isn't thrown if LeftHandSide is a reference to a writable data property
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_6 = {};
- Object.defineProperty(_8_7_2_6, "b", {
- writable: true
- });
-
- _8_7_2_6.b = 11;
-
- return _8_7_2_6.b === 11;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError isn't thrown if LeftHandSide is a + reference to a writable data property +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_6 = {}; + Object.defineProperty(_8_7_2_6, "b", { + writable: true + }); + + _8_7_2_6.b = 11; + + return _8_7_2_6.b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js index bc2f19543..965d5f66a 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-7-s.js @@ -1,25 +1,27 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-7-s.js
- * @description Strict Mode - TypeError isn't thrown if LeftHandSide is a reference to an accessor property with setter
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_7 = {};
- var _8_7_2_7_bValue = 1;
- Object.defineProperty(_8_7_2_7, "b", {
- get: function () { return _8_7_2_7_bValue; },
- set: function (value) { _8_7_2_7_bValue = value; }
- });
-
- _8_7_2_7.b = 11;
- return _8_7_2_7.b === 11;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError isn't thrown if LeftHandSide is a + reference to an accessor property with setter +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_7 = {}; + var _8_7_2_7_bValue = 1; + Object.defineProperty(_8_7_2_7, "b", { + get: function () { return _8_7_2_7_bValue; }, + set: function (value) { _8_7_2_7_bValue = value; } + }); + + _8_7_2_7.b = 11; + return _8_7_2_7.b === 11; + } +runTestCase(testcase); diff --git a/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js b/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js index 1e69c3305..224150f61 100644 --- a/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js +++ b/test/suite/ch08/8.7/8.7.2/8.7.2-8-s.js @@ -1,21 +1,23 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch08/8.7/8.7.2/8.7.2-8-s.js
- * @description Strict Mode - TypeError isn't thrown if LeftHandSide is a reference to a property of an extensible object
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _8_7_2_8 = {};
-
- _8_7_2_8.b = 11;
-
- return _8_7_2_8.b === 11;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: > + Strict Mode - TypeError isn't thrown if LeftHandSide is a + reference to a property of an extensible object +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var _8_7_2_8 = {}; + + _8_7_2_8.b = 11; + + return _8_7_2_8.b === 11; + } +runTestCase(testcase); |