diff options
author | Brian Terlson <brian.terlson@microsoft.com> | 2014-07-21 16:09:02 -0700 |
---|---|---|
committer | Brian Terlson <brian.terlson@microsoft.com> | 2014-07-30 15:38:26 -0700 |
commit | d4354d14d534abaf2bcb1f82b3daae0702f3b8ee (patch) | |
tree | c61fce41bac7da21f486f38b443d492ce751f80c /test/suite/ch10 | |
parent | 07ccd199d9e6cde340d154f1c5bcb539f6e1406a (diff) |
Normalize testcase format
This commit normalizes the test case format used across test262. It applies the following transformations:
* Convert to YAML for frontmatter
* Remove of trailing whitespace
* Replace /r/n with /n except in chapters 6 and 7.
* Copyright header always uses // comments
* new includes attribute replaces $INCLUDE
* No implicit assumptions about test environment other than $ERROR. Everything else appears in the include array. This includes "runTestCase" which is now included in a substantial number of tests.
Diffstat (limited to 'test/suite/ch10')
377 files changed, 6989 insertions, 6412 deletions
diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-1-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-1-s.js index a9cf025bc..7c9d5821d 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-1-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-1-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 ch10/10.1/10.1.1/10.1.1-1-s.js
- * @description Strict Mode - Use Strict Directive Prologue is 'use strict'; which contains two space between 'use' and 'strict'
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- var public = 1;
- return public === 1;
- }
-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 - Use Strict Directive Prologue is 'use strict'; + which contains two space between 'use' and 'strict' +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var public = 1; + return public === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-10-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-10-s.js index 51aa8ca73..2dc76e92e 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-10-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-10-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 ch10/10.1/10.1.1/10.1.1-10-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''USE STRICT';' in which all characters are uppercase
- * @noStrict
- */
-
-
-function testcase() {
- "USE STRICT";
- var public = 1;
- return public === 1;
- }
-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 - Use Strict Directive Prologue is ''USE STRICT';' in + which all characters are uppercase +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "USE STRICT"; + var public = 1; + return public === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-11-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-11-s.js index 6d7794d97..2f4a89696 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-11-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-11-s.js @@ -1,23 +1,25 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-11-s.js
- * @description Strict Mode - Eval code is strict code with a Use Strict Directive at the beginning of the block
- * @noStrict
- */
-
-
-function testcase() {
- try {
- eval("'use strict'; var public = 1; var anotherVariableNotReserveWord = 2;");
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError && typeof public === "undefined" &&
- typeof anotherVariableNotReserveWord === "undefined";
- }
- }
-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 - Eval code is strict code with a Use Strict Directive + at the beginning of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + eval("'use strict'; var public = 1; var anotherVariableNotReserveWord = 2;"); + + return false; + } catch (e) { + return e instanceof SyntaxError && typeof public === "undefined" && + typeof anotherVariableNotReserveWord === "undefined"; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-12-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-12-s.js index 09fdffe84..f566553af 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-12-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-12-s.js @@ -1,17 +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 ch10/10.1/10.1.1/10.1.1-12-s.js
- * @description Strict Mode - Eval code is strict eval code with a Use Strict Directive in the middle of the block
- * @noStrict
- */
-
-
-function testcase() {
- eval("var public = 1; 'use strict'; var anotherVariableNotReserveWord = 2;");
- return public === 1 && anotherVariableNotReserveWord === 2;
- }
-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 - Eval code is strict eval code with a Use Strict + Directive in the middle of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + eval("var public = 1; 'use strict'; var anotherVariableNotReserveWord = 2;"); + return public === 1 && anotherVariableNotReserveWord === 2; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-13-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-13-s.js index 0a4ba30ff..068a52e64 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-13-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-13-s.js @@ -1,17 +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 ch10/10.1/10.1.1/10.1.1-13-s.js
- * @description Strict Mode - Eval code is strict eval code with a Use Strict Directive at the end of the block
- * @noStrict
- */
-
-
-function testcase() {
- eval("var public = 1; var anotherVariableNotReserveWord = 2; 'use strict';");
- return public === 1 && anotherVariableNotReserveWord === 2;
- }
-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 - Eval code is strict eval code with a Use Strict + Directive at the end of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + eval("var public = 1; var anotherVariableNotReserveWord = 2; 'use strict';"); + return public === 1 && anotherVariableNotReserveWord === 2; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-14-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-14-s.js index dff413366..fe8c9a21a 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-14-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-14-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 ch10/10.1/10.1.1/10.1.1-14-s.js
- * @description Strict Mode - The call to eval function is contained in a Strict Mode block
- * @noStrict
- */
-
-
-function testcase() {
- 'use strict';
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- 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: > + Strict Mode - The call to eval function is contained in a Strict + Mode block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + try { + eval("var public = 1;"); + return false; + } catch (e) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-15-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-15-s.js index b7f7664f5..e46632380 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-15-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-15-s.js @@ -1,26 +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 ch10/10.1/10.1.1/10.1.1-15-s.js
- * @description Strict Mode - Function code that is part of a FunctionDeclaration is strict function code if FunctionDeclaration is contained in use strict
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- function fun() {
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-
- return fun();
- }
-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 - Function code that is part of a FunctionDeclaration + is strict function code if FunctionDeclaration is contained in use + strict +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + function fun() { + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } + + return fun(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-16-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-16-s.js index 35ef8803f..b14a45708 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-16-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-16-s.js @@ -1,24 +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 ch10/10.1/10.1.1/10.1.1-16-s.js
- * @description Strict Mode - Function code that is part of a FunctionExpression is strict function code if FunctionExpression is contained in use strict
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- return function () {
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- } ();
- }
-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 - Function code that is part of a FunctionExpression + is strict function code if FunctionExpression is contained in use + strict +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + return function () { + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } (); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-17-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-17-s.js index 976e644fe..00bbb93e3 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-17-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-17-s.js @@ -1,30 +1,33 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-17-s.js
- * @description Strict Mode - Function code that is part of a Accessor PropertyAssignment is in Strict Mode if Accessor PropertyAssignment is contained in use strict(getter)
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- var obj = {};
- Object.defineProperty(obj, "accProperty", {
- get: function () {
- eval("public = 1;");
- return 11;
- }
- });
-
- var temp = obj.accProperty === 11;
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - Function code that is part of a Accessor + PropertyAssignment is in Strict Mode if Accessor + PropertyAssignment is contained in use strict(getter) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + var obj = {}; + Object.defineProperty(obj, "accProperty", { + get: function () { + eval("public = 1;"); + return 11; + } + }); + + var temp = obj.accProperty === 11; + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-18-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-18-s.js index b384ebfe5..0e8626215 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-18-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-18-s.js @@ -1,31 +1,34 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-18-s.js
- * @description Strict Mode - Function code that is part of a Accessor PropertyAssignment is in Strict Mode if Accessor PropertyAssignment is contained in use strict(setter)
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- var obj = {};
- var data = "data";
- Object.defineProperty(obj, "accProperty", {
- set: function (value) {
- eval("var public = 1;");
- data = value;
- }
- });
-
- obj.accProperty = "overrideData";
- return false;
- } catch (e) {
- return e instanceof SyntaxError && data === "data";
- }
- }
-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 - Function code that is part of a Accessor + PropertyAssignment is in Strict Mode if Accessor + PropertyAssignment is contained in use strict(setter) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + var obj = {}; + var data = "data"; + Object.defineProperty(obj, "accProperty", { + set: function (value) { + eval("var public = 1;"); + data = value; + } + }); + + obj.accProperty = "overrideData"; + return false; + } catch (e) { + return e instanceof SyntaxError && data === "data"; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-19-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-19-s.js index 6643ec7f1..ecf08f6a2 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-19-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-19-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 ch10/10.1/10.1.1/10.1.1-19-s.js
- * @description Strict Mode - Function code of a FunctionDeclaration contains Use Strict Directive which appears at the start of the block
- * @noStrict
- */
-
-
-function testcase() {
- function fun() {
- "use strict";
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
- return fun();
- }
-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 - Function code of a FunctionDeclaration contains Use + Strict Directive which appears at the start of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + function fun() { + "use strict"; + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } + return fun(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-2-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-2-s.js index 42e6bce78..11f8dbe56 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-2-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-2-s.js @@ -1,23 +1,25 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-2-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict'' which lost the last character ';'
- * @noStrict
- */
-
-
-function testcase() {
- "use strict"
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
-
- }
-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 - Use Strict Directive Prologue is ''use strict'' + which lost the last character ';' +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict" + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-20-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-20-s.js index cc30e88e6..e30ca5fe2 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-20-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-20-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 ch10/10.1/10.1.1/10.1.1-20-s.js
- * @description Strict Mode - Function code of a FunctionDeclaration contains Use Strict Directive which appears in the middle of the block
- * @noStrict
- */
-
-
-function testcase() {
- function fun() {
- eval("var public = 1;");
- "use strict";
- return public === 1;
- }
- return fun();
- }
-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 - Function code of a FunctionDeclaration contains Use + Strict Directive which appears in the middle of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + function fun() { + eval("var public = 1;"); + "use strict"; + return public === 1; + } + return fun(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-21-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-21-s.js index 6c0245461..8238fa5f9 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-21-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-21-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 ch10/10.1/10.1.1/10.1.1-21-s.js
- * @description Strict Mode - Function code of a FunctionDeclaration contains Use Strict Directive which appears at the end of the block
- * @noStrict
- */
-
-
-function testcase() {
- function fun() {
- eval("var public = 1;");
- return public === 1;
- "use strict";
- }
- return fun();
- }
-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 - Function code of a FunctionDeclaration contains Use + Strict Directive which appears at the end of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + function fun() { + eval("var public = 1;"); + return public === 1; + "use strict"; + } + return fun(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-22-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-22-s.js index 875ad9780..b5e64c969 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-22-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-22-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 ch10/10.1/10.1.1/10.1.1-22-s.js
- * @description Strict Mode - Function code of a FunctionExpression contains Use Strict Directive which appears at the start of the block
- * @noStrict
- */
-
-
-function testcase() {
- return function () {
- "use strict";
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- } ();
- }
-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 - Function code of a FunctionExpression contains Use + Strict Directive which appears at the start of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + return function () { + "use strict"; + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } (); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-23-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-23-s.js index 680e928cd..467a60a8a 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-23-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-23-s.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-23-s.js
- * @description Strict Mode - Function code of a FunctionExpression contains Use Strict Directive which appears in the middle of the block
- * @noStrict
- */
-
-
-function testcase() {
- return function () {
- eval("var public = 1;");
- return public === 1;
- "use strict";
- } ();
- }
-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 - Function code of a FunctionExpression contains Use + Strict Directive which appears in the middle of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + return function () { + eval("var public = 1;"); + return public === 1; + "use strict"; + } (); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-24-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-24-s.js index ef67dbe59..6c9361d4b 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-24-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-24-s.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-24-s.js
- * @description Strict Mode - Function code of a FunctionExpression contains Use Strict Directive which appears at the end of the block
- * @noStrict
- */
-
-
-function testcase() {
- return function () {
- eval("var public = 1;");
- "use strict";
- return public === 1;
- } ();
- }
-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 - Function code of a FunctionExpression contains Use + Strict Directive which appears at the end of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + return function () { + eval("var public = 1;"); + "use strict"; + return public === 1; + } (); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-25-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-25-s.js index 206518f72..cc33c0d3b 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-25-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-25-s.js @@ -1,29 +1,32 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-25-s.js
- * @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears at the start of the block(getter)
- * @noStrict
- */
-
-
-function testcase() {
- try {
- var obj = {};
- Object.defineProperty(obj, "accProperty", {
- get: function () {
- "use strict";
- eval("var public = 1;");
- return 11;
- }
- });
- var temp = obj.accProperty === 11;
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - Function code of Accessor PropertyAssignment + contains Use Strict Directive which appears at the start of the + block(getter) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var obj = {}; + Object.defineProperty(obj, "accProperty", { + get: function () { + "use strict"; + eval("var public = 1;"); + return 11; + } + }); + var temp = obj.accProperty === 11; + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-26-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-26-s.js index 9da18136b..963491d7e 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-26-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-26-s.js @@ -1,32 +1,35 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-26-s.js
- * @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears at the start of the block(setter)
- * @noStrict
- */
-
-
-function testcase() {
- try {
- var obj = {};
- var data = "data";
- Object.defineProperty(obj, "accProperty", {
- set: function (value) {
- "use strict";
- eval("var public = 1;");
- data = value;
- }
- });
-
- obj.accProperty = "overrideData";
-
- return false;
- } catch (e) {
- return e instanceof SyntaxError && data === "data";
- }
- }
-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 - Function code of Accessor PropertyAssignment + contains Use Strict Directive which appears at the start of the + block(setter) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var obj = {}; + var data = "data"; + Object.defineProperty(obj, "accProperty", { + set: function (value) { + "use strict"; + eval("var public = 1;"); + data = value; + } + }); + + obj.accProperty = "overrideData"; + + return false; + } catch (e) { + return e instanceof SyntaxError && data === "data"; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-27-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-27-s.js index 94b01f5af..f76b97111 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-27-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-27-s.js @@ -1,24 +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 ch10/10.1/10.1.1/10.1.1-27-s.js
- * @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears in the middle of the block(getter)
- * @noStrict
- */
-
-
-function testcase() {
- var obj = {};
- Object.defineProperty(obj, "accProperty", {
- get: function () {
- eval("public = 1;");
- "use strict";
- return 11;
- }
- });
- return obj.accProperty === 11 && public === 1;
- }
-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 - Function code of Accessor PropertyAssignment + contains Use Strict Directive which appears in the middle of the + block(getter) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + Object.defineProperty(obj, "accProperty", { + get: function () { + eval("public = 1;"); + "use strict"; + return 11; + } + }); + return obj.accProperty === 11 && public === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-28-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-28-s.js index f3ebe7d11..4faf8073f 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-28-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-28-s.js @@ -1,27 +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 ch10/10.1/10.1.1/10.1.1-28-s.js
- * @description Strict Mode - Function code of Accessor PropertyAssignment contains Use Strict Directive which appears at the end of the block(setter)
- * @noStrict
- */
-
-
-function testcase() {
- var obj = {};
- var data;
-
- Object.defineProperty(obj, "accProperty", {
- set: function (value) {
- var _10_1_1_28_s = {a:1, a:2};
- data = value;
- "use strict";
- }
- });
- obj.accProperty = "overrideData";
- return data==="overrideData";
- }
-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 - Function code of Accessor PropertyAssignment + contains Use Strict Directive which appears at the end of the + block(setter) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var obj = {}; + var data; + + Object.defineProperty(obj, "accProperty", { + set: function (value) { + var _10_1_1_28_s = {a:1, a:2}; + data = value; + "use strict"; + } + }); + obj.accProperty = "overrideData"; + return data==="overrideData"; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-29-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-29-s.js index 9745777b1..ec8219cf2 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-29-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-29-s.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-29-s.js
- * @description Strict Mode - The built-in Function constructor is contained in use strict code
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- var funObj = new Function("a", "eval('public = 1;');");
- funObj();
- 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: > + Strict Mode - The built-in Function constructor is contained in + use strict code +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var funObj = new Function("a", "eval('public = 1;');"); + funObj(); + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js b/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js index dd30cb215..87626ae71 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-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 ch10/10.1/10.1.1/10.1.1-2gs.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict'' which lost the last character ';'
- * @noStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict"
-throw NotEarlyError;
-var public = 1;
+// 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 - Use Strict Directive Prologue is ''use strict'' + which lost the last character ';' +negative: ^((?!NotEarlyError).)*$ +flags: [noStrict] +---*/ + +"use strict" +throw NotEarlyError; +var public = 1; diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-3-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-3-s.js index 8c4e4fb5d..a4fc5555e 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-3-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-3-s.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-3-s.js
- * @description Strict Mode - Use Strict Directive Prologue is '' use strict';' which the first character is space
- * @noStrict
- */
-
-
-function testcase() {
- " use strict";
- var public = 1;
-
- return public === 1;
- }
-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 - Use Strict Directive Prologue is '' use strict';' + which the first character is space +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + " use strict"; + var public = 1; + + return public === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-30-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-30-s.js index 79c68e7c2..4a523416c 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-30-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-30-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-30-s.js
- * @description Strict Mode - Function code of built-in Function constructor contains Use Strict Directive which appears at the start of the block
- * @noStrict
- */
-
-
-function testcase() {
- try {
- var funObj = new Function("a", "'use strict'; eval('public = 1;');");
- funObj();
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - Function code of built-in Function constructor + contains Use Strict Directive which appears at the start of the + block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var funObj = new Function("a", "'use strict'; eval('public = 1;');"); + funObj(); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-31-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-31-s.js index 21c84976b..c513308fc 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-31-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-31-s.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-31-s.js
- * @description Strict Mode - Function code of built-in Function constructor contains Use Strict Directive which appears in the middle of the block
- * @noStrict
- */
-
-
-function testcase() {
- var funObj = new Function("a", "eval('public = 1;'); 'use strict'; anotherVariable = 2;");
- funObj();
- return public === 1 && anotherVariable === 2;
- }
-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 - Function code of built-in Function constructor + contains Use Strict Directive which appears in the middle of the + block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var funObj = new Function("a", "eval('public = 1;'); 'use strict'; anotherVariable = 2;"); + funObj(); + return public === 1 && anotherVariable === 2; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-32-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-32-s.js index a7cbc1d8c..5df7c281a 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-32-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-32-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 ch10/10.1/10.1.1/10.1.1-32-s.js
- * @description Strict Mode - Function code of built-in Function constructor contains Use Strict Directive which appears at the end of the block
- * @noStrict
- */
-
-
-function testcase() {
- var funObj = new Function("a", "eval('public = 1;'); anotherVariable = 2; 'use strict';");
- funObj();
- return public === 1 && anotherVariable === 2;
- }
-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 - Function code of built-in Function constructor + contains Use Strict Directive which appears at the end of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var funObj = new Function("a", "eval('public = 1;'); anotherVariable = 2; 'use strict';"); + funObj(); + return public === 1 && anotherVariable === 2; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-4-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-4-s.js index 3d7db1862..63e6324e4 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-4-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-4-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 ch10/10.1/10.1.1/10.1.1-4-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict ';' which the last character is space
- * @noStrict
- */
-
-
-function testcase() {
- "use strict ";
- var public = 1;
- return public === 1;
- }
-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 - Use Strict Directive Prologue is ''use strict ';' + which the last character is space +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict "; + var public = 1; + return public === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-5-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-5-s.js index 6a9f07af4..7ddade325 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-5-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-5-s.js @@ -1,23 +1,25 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-5-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the beginning of the block
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
-
- }
-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 - Use Strict Directive Prologue is ''use strict';' + which appears at the beginning of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js b/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js index 63698e5e6..468a4ca97 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.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 ch10/10.1/10.1.1/10.1.1-5gs.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the start of the code
- * @noStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-var public = 1;
+// 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 - Use Strict Directive Prologue is ''use strict';' + which appears at the start of the code +negative: ^((?!NotEarlyError).)*$ +flags: [noStrict] +---*/ + +"use strict"; +throw NotEarlyError; +var public = 1; diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-6-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-6-s.js index 6434c2515..295cb01db 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-6-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-6-s.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-6-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears in the middle of the block
- * @noStrict
- */
-
-
-function testcase() {
- var interface = 2;
- "use strict";
- var public = 1;
- return public === 1 && interface === 2;
- }
-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 - Use Strict Directive Prologue is ''use strict';' + which appears in the middle of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var interface = 2; + "use strict"; + var public = 1; + return public === 1 && interface === 2; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-7-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-7-s.js index 42b5e1ee2..10af2e43d 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-7-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-7-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 ch10/10.1/10.1.1/10.1.1-7-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the end of the block
- * @noStrict
- */
-
-
-function testcase() {
- var public = 1;
- return public === 1;
- "use strict";
- }
-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 - Use Strict Directive Prologue is ''use strict';' + which appears at the end of the block +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var public = 1; + return public === 1; + "use strict"; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-8-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-8-s.js index 3fc4df80e..33e058fb7 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-8-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-8-s.js @@ -1,23 +1,25 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-8-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears twice in the directive prologue
- * @noStrict
- */
-
-
-function testcase() {
- "use strict";
- "use strict";
- try {
- eval("var public = 1;");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - Use Strict Directive Prologue is ''use strict';' + which appears twice in the directive prologue +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + "use strict"; + try { + eval("var public = 1;"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js b/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js index 88476ac4a..6c0359f06 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js @@ -1,17 +1,18 @@ -/// 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 ch10/10.1/10.1.1/10.1.1-8gs.js
- * @description Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears twice in the code
- * @noStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-"use strict";
-throw NotEarlyError;
-var public = 1;
+// 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 - Use Strict Directive Prologue is ''use strict';' + which appears twice in the code +negative: ^((?!NotEarlyError).)*$ +flags: [noStrict] +---*/ + +"use strict"; +"use strict"; +throw NotEarlyError; +var public = 1; diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-9-s.js b/test/suite/ch10/10.1/10.1.1/10.1.1-9-s.js index b294ef146..f4067d64e 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-9-s.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-9-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 ch10/10.1/10.1.1/10.1.1-9-s.js
- * @description Strict Mode - Use Strict Directive Prologue is ''Use strict';' in which the first character is uppercase
- * @noStrict
- */
-
-
-function testcase() {
- "Use strict";
- var public = 1;
- return public === 1;
- }
-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 - Use Strict Directive Prologue is ''Use strict';' in + which the first character is uppercase +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "Use strict"; + var public = 1; + return public === 1; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.1/S10.1.1_A1_T1.js b/test/suite/ch10/10.1/S10.1.1_A1_T1.js index 4085aa5ac..16ddde281 100644 --- a/test/suite/ch10/10.1/S10.1.1_A1_T1.js +++ b/test/suite/ch10/10.1/S10.1.1_A1_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Program functions are defined in source text by a FunctionDeclaration or created dynamically either - * by using a FunctionExpression or by using the built-in Function object as a constructor - * - * @path ch10/10.1/S10.1.1_A1_T1.js - * @description Defining function by a FunctionDeclaration - */ +/*--- +info: > + Program functions are defined in source text by a FunctionDeclaration or created dynamically either + by using a FunctionExpression or by using the built-in Function object as a constructor +description: Defining function by a FunctionDeclaration +---*/ //CHECK#1 function f1(){ @@ -15,4 +14,3 @@ function f1(){ } if(typeof(f1)!=="function") $ERROR('#1: typeof(f1)!=="function"'); - diff --git a/test/suite/ch10/10.1/S10.1.1_A1_T2.js b/test/suite/ch10/10.1/S10.1.1_A1_T2.js index d453d6e59..b3ff66591 100644 --- a/test/suite/ch10/10.1/S10.1.1_A1_T2.js +++ b/test/suite/ch10/10.1/S10.1.1_A1_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Program functions are defined in source text by a FunctionDeclaration or created dynamically either - * by using a FunctionExpression or by using the built-in Function object as a constructor - * - * @path ch10/10.1/S10.1.1_A1_T2.js - * @description Creating function dynamically by using a FunctionExpression - */ +/*--- +info: > + Program functions are defined in source text by a FunctionDeclaration or created dynamically either + by using a FunctionExpression or by using the built-in Function object as a constructor +description: Creating function dynamically by using a FunctionExpression +---*/ //CHECK#1 var x=function f1(){return 1;}(); @@ -25,4 +24,3 @@ var z = (function(){return 3;})(); if(z!==3){ $ERROR('#3: Create an anonymous function dynamically either by using a FunctionExpression wrapped in a group operator'); } - diff --git a/test/suite/ch10/10.1/S10.1.1_A1_T3.js b/test/suite/ch10/10.1/S10.1.1_A1_T3.js index 5e49dcd59..5c149d038 100644 --- a/test/suite/ch10/10.1/S10.1.1_A1_T3.js +++ b/test/suite/ch10/10.1/S10.1.1_A1_T3.js @@ -1,16 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Program functions are defined in source text by a FunctionDeclaration or created dynamically either - * by using a FunctionExpression or by using the built-in Function object as a constructor - * - * @path ch10/10.1/S10.1.1_A1_T3.js - * @description Creating function dynamically by using the built-in Function object as a constructor - */ +/*--- +info: > + Program functions are defined in source text by a FunctionDeclaration or created dynamically either + by using a FunctionExpression or by using the built-in Function object as a constructor +description: > + Creating function dynamically by using the built-in Function + object as a constructor +---*/ //CHECK#1 var x=new function f1(){return 1;}; if(typeof(x.constructor)!=="function") $ERROR('#1: typeof(x.constructor)!=="function"'); - diff --git a/test/suite/ch10/10.1/S10.1.1_A2_T1.js b/test/suite/ch10/10.1/S10.1.1_A2_T1.js index aa5701155..25a12bb76 100644 --- a/test/suite/ch10/10.1/S10.1.1_A2_T1.js +++ b/test/suite/ch10/10.1/S10.1.1_A2_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * There are two types of Function objects. Internal functions - * are built-in objects of the language, such as parseInt and Math.exp - * - * @path ch10/10.1/S10.1.1_A2_T1.js - * @description Checking types of parseInt and Math.exp - */ +/*--- +info: > + There are two types of Function objects. Internal functions + are built-in objects of the language, such as parseInt and Math.exp +description: Checking types of parseInt and Math.exp +---*/ //CHECK#1 if(typeof(Math.exp)!=="function") @@ -16,5 +15,3 @@ if(typeof(Math.exp)!=="function") //CHECK#2 if(typeof(parseInt)!=="function") $ERROR('#2: typeof(parseInt())!=="function" '+typeof(parseInt())); - - diff --git a/test/suite/ch10/10.1/S10.1.6_A1_T1.js b/test/suite/ch10/10.1/S10.1.6_A1_T1.js index 5dee9bf43..ccc84b8ea 100644 --- a/test/suite/ch10/10.1/S10.1.6_A1_T1.js +++ b/test/suite/ch10/10.1/S10.1.6_A1_T1.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The activation object is initialised with a property with name arguments and attributes {DontDelete} - * - * @path ch10/10.1/S10.1.6_A1_T1.js - * @description Checking if deleting function parameter is possible - * @noStrict - */ +/*--- +info: > + The activation object is initialised with a property with name arguments + and attributes {DontDelete} +description: Checking if deleting function parameter is possible +flags: [noStrict] +---*/ //CHECK#1 function f1(a){ @@ -16,5 +16,3 @@ function f1(a){ } if (f1(1) !== 1) $ERROR('#1: Function parameter was deleted'); - - diff --git a/test/suite/ch10/10.1/S10.1.6_A1_T2.js b/test/suite/ch10/10.1/S10.1.6_A1_T2.js index 8747b2f11..374f52f8c 100644 --- a/test/suite/ch10/10.1/S10.1.6_A1_T2.js +++ b/test/suite/ch10/10.1/S10.1.6_A1_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The activation object is initialised with a property with name arguments and attributes {DontDelete} - * - * @path ch10/10.1/S10.1.6_A1_T2.js - * @description Checking funtion which returns property "arguments" - */ +/*--- +info: > + The activation object is initialised with a property with name arguments + and attributes {DontDelete} +description: Checking funtion which returns property "arguments" +---*/ var ARG_STRING = "value of the argument property"; @@ -30,4 +30,3 @@ if (delete x[3] !== true) if (x[3] === 4) $ERROR('#3.2: Function parameters have attribute {DontDelete}'); - diff --git a/test/suite/ch10/10.1/S10.1.6_A1_T3.js b/test/suite/ch10/10.1/S10.1.6_A1_T3.js index 95e1bf2ef..27b1026f7 100644 --- a/test/suite/ch10/10.1/S10.1.6_A1_T3.js +++ b/test/suite/ch10/10.1/S10.1.6_A1_T3.js @@ -1,13 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The activation object is initialised with a property with name arguments and attributes {DontDelete} - * - * @path ch10/10.1/S10.1.6_A1_T3.js - * @description Checking function which returns "this" - * @noStrict - */ +/*--- +info: > + The activation object is initialised with a property with name arguments + and attributes {DontDelete} +description: Checking function which returns "this" +flags: [noStrict] +---*/ function f1() { if (delete arguments) { @@ -17,4 +17,3 @@ function f1() { } f1(); - diff --git a/test/suite/ch10/10.1/S10.1.7_A1_T1.js b/test/suite/ch10/10.1/S10.1.7_A1_T1.js index f7e7a0b0c..7238e3583 100644 --- a/test/suite/ch10/10.1/S10.1.7_A1_T1.js +++ b/test/suite/ch10/10.1/S10.1.7_A1_T1.js @@ -1,15 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The this value associated with an executioncontext is immutable - * - * @path ch10/10.1/S10.1.7_A1_T1.js - * @description Checking if deleting "this" fails - */ +/*--- +info: The this value associated with an executioncontext is immutable +description: Checking if deleting "this" fails +---*/ //CHECK#1 if (delete this !== true) $ERROR('#1: The this value associated with an executioncontext is immutable. Actual: this was deleted'); - - diff --git a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-16-s.js b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-16-s.js index bfc1f5ece..52e18362c 100644 --- a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-16-s.js +++ b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-16-s.js @@ -1,23 +1,25 @@ -/// 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 ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-16-s.js
- * @description Strict Mode - TypeError is thrown when changing the value of a Value Property of the Global Object under strict mode (NaN)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- NaN = 12;
- 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 when changing the value of a + Value Property of the Global Object under strict mode (NaN) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + NaN = 12; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-18-s.js b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-18-s.js index e60836978..d117d9f67 100644 --- a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-18-s.js +++ b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-18-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 ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-18-s.js
- * @description Strict Mode - TypeError is thrown when changing the value of a Value Property of the Global Object under strict mode (undefined)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- undefined = 12;
- 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 when changing the value of a + Value Property of the Global Object under strict mode (undefined) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + undefined = 12; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-22-s.js b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-22-s.js index 9303b79b5..d072356e6 100644 --- a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-22-s.js +++ b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-22-s.js @@ -1,24 +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 ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-22-s.js
- * @description Strict Mode - TypeError is not thrown when changing the value of the Constructor Properties of the Global Object under strict mode (Object)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var objBak = Object;
-
- try {
- Object = 12;
- return true;
- } finally {
- Object = objBak;
- }
- }
-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 not thrown when changing the value of + the Constructor Properties of the Global Object under strict mode + (Object) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var objBak = Object; + + try { + Object = 12; + return true; + } finally { + Object = objBak; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-27-s.js b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-27-s.js index 9ecdf64a5..cd36539a2 100644 --- a/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-27-s.js +++ b/test/suite/ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-27-s.js @@ -1,24 +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 ch10/10.2/10.2.1/10.2.1.1/10.2.1.1.3/10.2.1.1.3-4-27-s.js
- * @description Strict Mode - TypeError is not thrown when changing the value of the Constructor Properties of the Global Object under strict mode (Number)
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var numBak = Number;
- try {
- Number = 12;
- return true;
- } finally {
- Number = numBak;
- }
- }
-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 not thrown when changing the value of + the Constructor Properties of the Global Object under strict mode + (Number) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + var numBak = Number; + try { + Number = 12; + return true; + } finally { + Number = numBak; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A1.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A1.js index 6206633b2..e697a8afb 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A1.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the caller supplies fewer parameter values than there are - * formal parameters, the extra formal parameters have value undefined - * - * @path ch10/10.2/10.2.1/S10.2.1_A1.js - * @description Calling function excluding a few parameters - */ +/*--- +info: > + If the caller supplies fewer parameter values than there are + formal parameters, the extra formal parameters have value undefined +description: Calling function excluding a few parameters +---*/ //CHECK#1 function f1(a, b){ @@ -26,4 +25,3 @@ function f2(a, b, c){ if(!(f2(1) === true)){ $ERROR('#2: f2(1, 2) === true'); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A2.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A2.js index e622c5462..3b8e89a2f 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A2.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A2.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If two or more formal parameters share the same name, hence - * the same property, the corresponding property is given the value that was - * supplied for the last parameter with this name - * - * @path ch10/10.2/10.2.1/S10.2.1_A2.js - * @description Creating functions initialized with two or more formal parameters, which have the same name - * @noStrict - */ +/*--- +info: > + If two or more formal parameters share the same name, hence + the same property, the corresponding property is given the value that was + supplied for the last parameter with this name +description: > + Creating functions initialized with two or more formal parameters, + which have the same name +flags: [noStrict] +---*/ //CHECK#1 function f1(x, x) { @@ -34,4 +35,3 @@ function f3(x, x) { if(!(f3(1, 2) === 'a2')){ $ERROR("#3: f3(1, 2) === 'a2'"); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A3.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A3.js index 1c15c0621..8da07b12f 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A3.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A3.js @@ -1,15 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If the value of this last parameter (which has the same - * name as some previous parameters do) was not supplied by the - * caller, the value of the corresponding property is undefined - * - * @path ch10/10.2/10.2.1/S10.2.1_A3.js - * @description Creating functions with two or more formal parameters, - * that have the same name. Calling this function excluding a few last parameters - */ +/*--- +info: > + If the value of this last parameter (which has the same + name as some previous parameters do) was not supplied by the + caller, the value of the corresponding property is undefined +description: > + Creating functions with two or more formal parameters, that have + the same name. Calling this function excluding a few last + parameters +---*/ //CHECK#1 function f1(x, a, b, x){ @@ -18,4 +19,3 @@ function f1(x, a, b, x){ if(!(f1(1, 2) === undefined)){ $ERROR('#1: f1(1, 2) === undefined'); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T1.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T1.js index a153af430..346f3a27f 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T1.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T1.js @@ -1,16 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Function declaration in function code - If the variable object - * already has a property with the name of Function Identifier, replace its - * value and attributes. Semantically, this step must follow the creation of - * FormalParameterList properties - * - * @path ch10/10.2/10.2.1/S10.2.1_A4_T1.js - * @description Checking existence of a function with passed parameter - * @noStrict - */ +/*--- +info: > + Function declaration in function code - If the variable object + already has a property with the name of Function Identifier, replace its + value and attributes. Semantically, this step must follow the creation of + FormalParameterList properties +description: Checking existence of a function with passed parameter +flags: [noStrict] +---*/ //CHECK#1 function f1(x){ @@ -46,4 +45,3 @@ function f3() { if (!(f3() === "function")){ $ERROR('#3: f3() === "function"'); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T2.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T2.js index 16661df91..4c84ac9e3 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T2.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A4_T2.js @@ -1,15 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Function declaration in function code - If the variable object - * already has a property with the name of Function Identifier, replace its - * value and attributes. Semantically, this step must follow the creation of - * FormalParameterList properties - * - * @path ch10/10.2/10.2.1/S10.2.1_A4_T2.js - * @description Checking existence of a function with declared variable - */ +/*--- +info: > + Function declaration in function code - If the variable object + already has a property with the name of Function Identifier, replace its + value and attributes. Semantically, this step must follow the creation of + FormalParameterList properties +description: Checking existence of a function with declared variable +includes: [$PRINT.js] +---*/ //CHECK#1 function f1(){ @@ -38,4 +38,3 @@ function f2(){ if(!(f2() === "function")){ $PRINT('#2: f2() === "function"'); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T1.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T1.js index 824aedeee..e0b73a85a 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T1.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T1.js @@ -1,15 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * For each VariableDeclaration or VariableDeclarationNoIn in the - * code, create a property of the variable object whose name is the Identifier - * in the VariableDeclaration or VariableDeclarationNoIn, whose value is - * undefined and whose attributes are determined by the type of code - * - * @path ch10/10.2/10.2.1/S10.2.1_A5.1_T1.js - * @description Checking variable existence only - */ +/*--- +info: > + For each VariableDeclaration or VariableDeclarationNoIn in the + code, create a property of the variable object whose name is the Identifier + in the VariableDeclaration or VariableDeclarationNoIn, whose value is + undefined and whose attributes are determined by the type of code +description: Checking variable existence only +includes: [$PRINT.js] +---*/ //CHECK#1 function f1(){ @@ -32,4 +32,3 @@ function f2(){ if(!(f2() === undefined)){ $PRINT('#1: f2() === undefined'); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T2.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T2.js index adef8b5c5..8cca24147 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T2.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.1_T2.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * For each VariableDeclaration or VariableDeclarationNoIn in the - * code, create a property of the variable object whose name is the Identifier - * in the VariableDeclaration or VariableDeclarationNoIn, whose value is - * undefined and whose attributes are determined by the type of code - * - * @path ch10/10.2/10.2.1/S10.2.1_A5.1_T2.js - * @description Checking existence of the variable object property with formal parameter - */ +/*--- +info: > + For each VariableDeclaration or VariableDeclarationNoIn in the + code, create a property of the variable object whose name is the Identifier + in the VariableDeclaration or VariableDeclarationNoIn, whose value is + undefined and whose attributes are determined by the type of code +description: > + Checking existence of the variable object property with formal + parameter +includes: [$PRINT.js] +---*/ //CHECK#1 function f1(x){ @@ -32,4 +34,3 @@ function f2(x){ if(!(f2() === undefined)){ $PRINT('#1: f2(1) === undefined'); } - diff --git a/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.2_T1.js b/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.2_T1.js index d5321c907..743e289e6 100644 --- a/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.2_T1.js +++ b/test/suite/ch10/10.2/10.2.1/S10.2.1_A5.2_T1.js @@ -1,14 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If there is already a property of the variable object with the - * name of a declared variable, the value of the property and its attributes - * are not changed - * - * @path ch10/10.2/10.2.1/S10.2.1_A5.2_T1.js - * @description Checking existence of the variable object property with formal parameter - */ +/*--- +info: > + If there is already a property of the variable object with the + name of a declared variable, the value of the property and its attributes + are not changed +description: > + Checking existence of the variable object property with formal + parameter +includes: [$PRINT.js] +---*/ //CHECK#1 function f1(x){ @@ -31,4 +33,3 @@ function f2(x){ if(!(f2(1) === 1)){ $PRINT('#1: f2(1) === 1'); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T1.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T1.js index 7aba918d1..1f03ee6ae 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T1.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T1.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T1.js - * @description Checking scope chain containing function declarations - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations +---*/ var x = 0; @@ -23,4 +22,3 @@ function f1(){ if(!(f1() === 1)){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T2.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T2.js index 33b472418..06ec5a4ac 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T2.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T2.js - * @description Checking scope chain containing function declarations - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations +---*/ var x = 0; @@ -22,4 +21,3 @@ function f1(){ if(!(f1() === 0)){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T3.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T3.js index a9a85deff..350f662dd 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T3.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T3.js - * @description Checking scope chain containing function declarations - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations +---*/ var x = 0; @@ -24,5 +23,3 @@ function f1(){ if(!(f1() === undefined)){ $ERROR("#1: Scope chain disturbed"); } - - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T4.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T4.js index e32ffac35..fdd3a3de4 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T4.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T4.js - * @description Checking scope chain containing function declarations - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations +---*/ var x = 0; @@ -24,4 +23,3 @@ function f1(){ if(!(f1() === 1)){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T5.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T5.js index c71654f6f..c761ef6f6 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T5.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T5.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T5.js - * @description Checking scope chain containing function declarations and "with" - * @noStrict - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations and "with" +flags: [noStrict] +---*/ var x = 0; @@ -28,4 +27,3 @@ function f1(){ if(!(f1() === "obj")){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T6.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T6.js index 990c27ef3..4e55face7 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T6.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T6.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T6.js - * @description Checking scope chain containing function declarations and "with" - * @noStrict - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations and "with" +flags: [noStrict] +---*/ var x = 0; @@ -27,4 +26,3 @@ function f1(){ if(!(f1() === "obj")){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T7.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T7.js index cc719b504..4b6de1a67 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T7.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T7.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T7.js - * @description Checking scope chain containing function declarations and "with" - * @noStrict - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations and "with" +flags: [noStrict] +---*/ var x = 0; @@ -29,4 +28,3 @@ function f1(){ if(!(f1() === "obj")){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T8.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T8.js index 3aaefcf14..e13f22581 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T8.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T8.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T8.js - * @description Checking scope chain containing function declarations and "with" - * @noStrict - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations and "with" +flags: [noStrict] +---*/ var x = 0; @@ -29,4 +28,3 @@ function f1(){ if(!(f1() === "obj")){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T9.js b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T9.js index c03fdd1cf..bfb8fc5af 100644 --- a/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T9.js +++ b/test/suite/ch10/10.2/10.2.2/S10.2.2_A1_T9.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every execution context has associated with it a scope chain. - * A scope chain is a list of objects that are searched when evaluating an - * Identifier - * - * @path ch10/10.2/10.2.2/S10.2.2_A1_T9.js - * @description Checking scope chain containing function declarations and "with" - * @noStrict - */ +/*--- +info: > + Every execution context has associated with it a scope chain. + A scope chain is a list of objects that are searched when evaluating an + Identifier +description: Checking scope chain containing function declarations and "with" +flags: [noStrict] +---*/ var x = 0; @@ -24,4 +23,3 @@ function f1(){ if(!(f1() === "obj")){ $ERROR("#1: Scope chain disturbed"); } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T1.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T1.js index 6a133d788..6acdb8c14 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T1.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.1_T1.js - * @description Global execution context - Value Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Global execution context - Value Properties +---*/ //CHECK#1 if ( NaN === null ) { @@ -23,4 +22,3 @@ if ( Infinity === null ) { if ( undefined === null ) { $ERROR("#3: undefined === null"); } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T2.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T2.js index 1fafadc99..49d6bfa17 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T2.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.1_T2.js - * @description Global execution context - Function Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Global execution context - Function Properties +---*/ //CHECK#4 if ( eval === null ) { @@ -53,4 +52,3 @@ if ( encodeURI === null ) { if ( encodeURIComponent === null ) { $ERROR("#12: encodeURIComponent === null"); } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js index 3407039e8..f586fc681 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.1_T3.js - * @description Global execution context - Constructor Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Global execution context - Constructor Properties +---*/ //CHECK#13 if ( Object === null ) { @@ -83,5 +82,3 @@ if ( TypeError === null ) { if ( URIError === null ) { $ERROR("#26: URIError === null"); } - - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T4.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T4.js index f59cc646e..1173976df 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T4.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.1_T4.js @@ -1,16 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.1_T4.js - * @description Global execution context - Other Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Global execution context - Other Properties +---*/ //CHECK#27 if ( Math === null ) { $ERROR("#27: Math === null"); } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T1.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T1.js index a6b6c4bbf..d69865b32 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T1.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.2_T1.js - * @description Function execution context - Value Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Function execution context - Value Properties +---*/ function test() { //CHECK#1 @@ -27,4 +26,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js index 45ca89f36..211149fb7 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.2_T2.js - * @description Function execution context - Function Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Function execution context - Function Properties +---*/ function test() { //CHECK#4 @@ -57,4 +56,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T3.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T3.js index 295943cb7..a49262bbc 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T3.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.2_T3.js - * @description Function execution context - Constructor Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Function execution context - Constructor Properties +---*/ function test() { //CHECK#13 @@ -87,4 +86,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T4.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T4.js index 01d02fb39..a1d0451d0 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T4.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.2_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.2_T4.js - * @description Function execution context - Other Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Function execution context - Other Properties +---*/ function test() { //CHECK#27 @@ -17,4 +16,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T1.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T1.js index 695f0acf5..d5fb931c8 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T1.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.3_T1.js - * @description Eval execution context - Value Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Eval execution context - Value Properties +---*/ var evalStr = '//CHECK#1\n'+ @@ -27,4 +26,3 @@ var evalStr = ';\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T2.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T2.js index 5afd0ef93..17ea0a4d6 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T2.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.3_T2.js - * @description Eval execution context - Function Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Eval execution context - Function Properties +---*/ var evalStr = '//CHECK#4\n'+ @@ -57,4 +56,3 @@ var evalStr = ';\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T3.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T3.js index b34b1e252..55280ae16 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T3.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.3_T3.js - * @description Eval execution context - Constructor Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Eval execution context - Constructor Properties +---*/ var evalStr = '//CHECK#13\n'+ @@ -87,4 +86,3 @@ var evalStr = ';\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T4.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T4.js index 054969ce2..73fb3c2f1 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T4.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A1.3_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object has properties such as built-in objects such as - * Math, String, Date, parseInt, etc - * - * @path ch10/10.2/10.2.3/S10.2.3_A1.3_T4.js - * @description Eval execution context - Other Properties - */ +/*--- +info: > + Global object has properties such as built-in objects such as + Math, String, Date, parseInt, etc +description: Eval execution context - Other Properties +---*/ var evalStr = '//CHECK#27\n'+ @@ -17,4 +16,3 @@ var evalStr = ';\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T1.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T1.js index db57ad5ba..4d3f3f882 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T1.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T1.js - * @description Global execution context - Value Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Value Properties +---*/ //CHECK#1 for (var x in this) { @@ -18,4 +16,3 @@ for (var x in this) { $ERROR("#1: 'undefined' have attribute DontEnum"); } } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js index 6a39d43a1..6c25317e6 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T2.js - * @description Global execution context - Function Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Function Properties +---*/ //CHECK#1 for (var x in this) { @@ -30,4 +28,3 @@ for (var x in this) { $ERROR("#1: 'encodeURIComponent' have attribute DontEnum"); } } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T3.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T3.js index c684a649a..56146684e 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T3.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T3.js - * @description Global execution context - Constructor Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Constructor Properties +---*/ //CHECK#1 for (var x in this) { @@ -42,4 +40,3 @@ for (var x in this) { $ERROR("#1: 'URIError' have attribute DontEnum"); } } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T4.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T4.js index cb575c533..5ae5c15d7 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T4.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.1_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.1_T4.js - * @description Global execution context - Other Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Other Properties +---*/ //CHECK#1 for (var x in this) { @@ -14,4 +12,3 @@ for (var x in this) { $ERROR("#1: 'Math' have attribute DontEnum"); } } - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T1.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T1.js index 808cc1b60..7e9482a05 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T1.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.2_T1.js - * @description Function execution context - Value Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Function execution context - Value Properties +---*/ function test() { //CHECK#1 @@ -22,4 +20,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T2.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T2.js index ac87a58ef..4dfb563c9 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T2.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.2_T2.js - * @description Function execution context - Function Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Function execution context - Function Properties +---*/ function test() { //CHECK#1 @@ -34,4 +32,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T3.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T3.js index e6f5f4ac7..65d7f29d7 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T3.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.2_T3.js - * @description Function execution context - Constructor Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Function execution context - Constructor Properties +---*/ function test() { //CHECK#1 @@ -46,4 +44,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T4.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T4.js index 3a6afa5cc..695530429 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T4.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.2_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.2_T4.js - * @description Function execution context - Other Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Function execution context - Other Properties +---*/ function test() { //CHECK#1 @@ -18,4 +16,3 @@ function test() { } test(); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js index f7f32c563..c6c90bdd4 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.3_T1.js - * @description Global execution context - Value Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Value Properties +---*/ var evalStr = '//CHECK#1\n'+ @@ -21,4 +19,3 @@ var evalStr = '}\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T2.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T2.js index 8d3cfe7ee..d4a3c5b36 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T2.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.3_T2.js - * @description Global execution context - Function Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Function Properties +---*/ var evalStr = '//CHECK#1\n'+ @@ -33,4 +31,3 @@ var evalStr = '}\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T3.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T3.js index 9ae75beb9..b70facd01 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T3.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.3_T3.js - * @description Global execution context - Constructor Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Constructor Properties +---*/ var evalStr = '//CHECK#1\n'+ @@ -45,4 +43,3 @@ var evalStr = '}\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T4.js b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T4.js index ed60835c9..335f3852c 100644 --- a/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T4.js +++ b/test/suite/ch10/10.2/10.2.3/S10.2.3_A2.3_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Global object properties have attributes { DontEnum } - * - * @path ch10/10.2/10.2.3/S10.2.3_A2.3_T4.js - * @description Global execution context - Other Properties - */ +/*--- +info: Global object properties have attributes { DontEnum } +description: Global execution context - Other Properties +---*/ var evalStr = '//CHECK#1\n'+ @@ -17,4 +15,3 @@ var evalStr = '}\n'; eval(evalStr); - diff --git a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js b/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js index 04abf8bef..c5c8fe848 100644 --- a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js +++ b/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T1.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Variable instantiation is performed using the global object as - * the variable object and using property attributes { DontDelete } - * - * @path ch10/10.4/10.4.1/S10.4.1_A1_T1.js - * @description Checking if deleting variable x, that is defined as var x = 1, fails - * @noStrict - */ +/*--- +info: > + Variable instantiation is performed using the global object as + the variable object and using property attributes { DontDelete } +description: > + Checking if deleting variable x, that is defined as var x = 1, + fails +flags: [noStrict] +---*/ var x = 1; @@ -19,4 +20,3 @@ if (this.x !== 1) { if(delete this.x !== false){ $ERROR("#2: variable x has property attribute DontDelete"); } - diff --git a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js b/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js index 107381f2d..78ab8fabf 100644 --- a/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js +++ b/test/suite/ch10/10.4/10.4.1/S10.4.1_A1_T2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Variable instantiation is performed using the global object as - * the variable object and using property attributes { DontDelete } - * - * @path ch10/10.4/10.4.1/S10.4.1_A1_T2.js - * @description Checking if deleting variable x, that is defined as x = 1, fails - * @noStrict - */ +/*--- +info: > + Variable instantiation is performed using the global object as + the variable object and using property attributes { DontDelete } +description: Checking if deleting variable x, that is defined as x = 1, fails +flags: [noStrict] +---*/ x = 1; @@ -19,4 +18,3 @@ if (this.x !== 1) { if(delete this.x !== true){ $ERROR("#2: variable x has property attribute DontDelete"); } - diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js index 233eac2c8..bda0d51aa 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-1-1.js @@ -1,26 +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 ch10/10.4/10.4.2/10.4.2-1-1.js
- * @description Indirect call to eval has context set to global context
- */
-
-var __10_4_2_1_1_1 = "str";
-function testcase() {
- try {
-
- var _eval = eval;
- var __10_4_2_1_1_1 = "str1";
- if(_eval("\'str\' === __10_4_2_1_1_1") === true && // indirect eval
- eval("\'str1\' === __10_4_2_1_1_1") === true) { // direct eval
- return true;
- }
- return false;
- } finally {
- delete this.__10_4_2_1_1_1;
- }
-}
-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: Indirect call to eval has context set to global context +includes: [runTestCase.js] +---*/ + +var __10_4_2_1_1_1 = "str"; +function testcase() { + try { + + var _eval = eval; + var __10_4_2_1_1_1 = "str1"; + if(_eval("\'str\' === __10_4_2_1_1_1") === true && // indirect eval + eval("\'str1\' === __10_4_2_1_1_1") === true) { // direct eval + return true; + } + return false; + } finally { + delete this.__10_4_2_1_1_1; + } +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js index 7c144f552..4105bb2b6 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-1-2.js @@ -1,31 +1,34 @@ -/// 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 ch10/10.4/10.4.2/10.4.2-1-2.js
- * @description Indirect call to eval has context set to global context (nested function)
- */
-
-var __10_4_2_1_2 = "str";
-function testcase() {
- try {
-
- var _eval = eval;
- var __10_4_2_1_2 = "str1";
- function foo() {
- var __10_4_2_1_2 = "str2";
- if(_eval("\'str\' === __10_4_2_1_2") === true && // indirect eval
- eval("\'str2\' === __10_4_2_1_2") === true) { // direct eval
- return true;
- } else {
- return false;
- }
- }
- return foo();
- } finally {
- delete this.__10_4_2_1_1_2;
- }
- }
-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: > + Indirect call to eval has context set to global context (nested + function) +includes: [runTestCase.js] +---*/ + +var __10_4_2_1_2 = "str"; +function testcase() { + try { + + var _eval = eval; + var __10_4_2_1_2 = "str1"; + function foo() { + var __10_4_2_1_2 = "str2"; + if(_eval("\'str\' === __10_4_2_1_2") === true && // indirect eval + eval("\'str2\' === __10_4_2_1_2") === true) { // direct eval + return true; + } else { + return false; + } + } + return foo(); + } finally { + delete this.__10_4_2_1_1_2; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js index 078ea21ab..beca1c852 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-1-3.js @@ -1,34 +1,37 @@ -/// 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 ch10/10.4/10.4.2/10.4.2-1-3.js
- * @description Indirect call to eval has context set to global context (catch block)
- */
-
-var __10_4_2_1_3 = "str";
-function testcase() {
-
- try {
-
- var _eval = eval;
- var __10_4_2_1_3 = "str1";
- try {
- throw "error";
- }
- catch (e) {
- var __10_4_2_1_3 = "str2";
- if (_eval("\'str\' === __10_4_2_1_3") === true && // indirect eval
- eval("\'str2\' === __10_4_2_1_3") === true) { // direct eval
- return true;
- } else {
- return false;
- }
- }
- } finally {
- delete this.__10_4_2_1_3;
- }
- }
-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: > + Indirect call to eval has context set to global context (catch + block) +includes: [runTestCase.js] +---*/ + +var __10_4_2_1_3 = "str"; +function testcase() { + + try { + + var _eval = eval; + var __10_4_2_1_3 = "str1"; + try { + throw "error"; + } + catch (e) { + var __10_4_2_1_3 = "str2"; + if (_eval("\'str\' === __10_4_2_1_3") === true && // indirect eval + eval("\'str2\' === __10_4_2_1_3") === true) { // direct eval + return true; + } else { + return false; + } + } + } finally { + delete this.__10_4_2_1_3; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js index 8a025f0d9..b4b9f7527 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-1-4.js @@ -1,29 +1,32 @@ -/// 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 ch10/10.4/10.4.2/10.4.2-1-4.js
- * @description Indirect call to eval has context set to global context (with block)
- */
-
-var __10_4_2_1_4 = "str";
-function testcase() {
- try {
- var o = new Object();
- o.__10_4_2_1_4 = "str2";
- var _eval = eval;
- var __10_4_2_1_4 = "str1";
- with (o) {
- if (_eval("\'str\' === __10_4_2_1_4") === true && // indirect eval
- eval("\'str2\' === __10_4_2_1_4") === true) { // direct eval
- return true;
- }
- }
- return false;
- } finally {
- delete this.__10_4_2_1_4;
- }
- }
-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: > + Indirect call to eval has context set to global context (with + block) +includes: [runTestCase.js] +---*/ + +var __10_4_2_1_4 = "str"; +function testcase() { + try { + var o = new Object(); + o.__10_4_2_1_4 = "str2"; + var _eval = eval; + var __10_4_2_1_4 = "str1"; + with (o) { + if (_eval("\'str\' === __10_4_2_1_4") === true && // indirect eval + eval("\'str2\' === __10_4_2_1_4") === true) { // direct eval + return true; + } + } + return false; + } finally { + delete this.__10_4_2_1_4; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js b/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js index 3808a9988..62a90877a 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-1-5.js @@ -1,27 +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 ch10/10.4/10.4.2/10.4.2-1-5.js
- * @description Indirect call to eval has context set to global context (inside another eval)
- */
-
-var __10_4_2_1_5 = "str";
-function testcase() {
- try {
-
- var __10_4_2_1_5 = "str1";
- var r = eval("\
- var _eval = eval; \
- var __10_4_2_1_5 = \'str2\'; \
- _eval(\"\'str\' === __10_4_2_1_5 \") && \
- eval(\"\'str2\' === __10_4_2_1_5\")\
- ");
- return r;
- } finally {
- delete this.__10_4_2_1_5;
- }
- }
-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: > + Indirect call to eval has context set to global context (inside + another eval) +includes: [runTestCase.js] +---*/ + +var __10_4_2_1_5 = "str"; +function testcase() { + try { + + var __10_4_2_1_5 = "str1"; + var r = eval("\ + var _eval = eval; \ + var __10_4_2_1_5 = \'str2\'; \ + _eval(\"\'str\' === __10_4_2_1_5 \") && \ + eval(\"\'str2\' === __10_4_2_1_5\")\ + "); + return r; + } finally { + delete this.__10_4_2_1_5; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js b/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js index 61d85cec0..308f5b01f 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-2-c-1.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.4/10.4.2/10.4.2-2-c-1.js
- * @description Direct val code in non-strict mode - can instantiate variable in calling context
- */
-
-
-function testcase() {
- var x = 0;
- return function inner() {
- eval("var x = 1");
- if (x === 1)
- 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: > + Direct val code in non-strict mode - can instantiate variable in + calling context +includes: [runTestCase.js] +---*/ + +function testcase() { + var x = 0; + return function inner() { + eval("var x = 1"); + if (x === 1) + return true; + } (); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-2-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2-2-s.js index fb00b04f5..a2bc24fbc 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-2-s.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.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 ch10/10.4/10.4.2/10.4.2-2-s.js
- * @description Strict Mode - Strict mode eval code cannot instantiate functions in the variable environment of the caller to eval
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- eval("(function fun(x){ return x })(10)");
- return typeof (fun) === "undefined";
- }
-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 - Strict mode eval code cannot instantiate functions + in the variable environment of the caller to eval +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + eval("(function fun(x){ return x })(10)"); + return typeof (fun) === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-s.js index 57ee1912d..590dd21ed 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-s.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-1-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 ch10/10.4/10.4.2/10.4.2-3-c-1-s.js
- * @description Direct eval code in strict mode - cannot instantiate variable in the variable environment of the calling context
- * @onlyStrict
- */
-
-
-function testcase() {
- var _10_4_2_3_c_1_s = 0;
- function _10_4_2_3_c_1_sFunc() {
- eval("'use strict';var _10_4_2_3_c_1_s = 1");
- return _10_4_2_3_c_1_s===0;
- }
- return _10_4_2_3_c_1_sFunc();
- }
-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: > + Direct eval code in strict mode - cannot instantiate variable in + the variable environment of the calling context +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var _10_4_2_3_c_1_s = 0; + function _10_4_2_3_c_1_sFunc() { + eval("'use strict';var _10_4_2_3_c_1_s = 1"); + return _10_4_2_3_c_1_s===0; + } + return _10_4_2_3_c_1_sFunc(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-s.js index 91caa626b..7df57db62 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-s.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2-3-c-2-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 ch10/10.4/10.4.2/10.4.2-3-c-2-s.js
- * @description Calling code in strict mode - eval cannot instantiate variable in the variable environment of the calling context
- * @onlyStrict
- */
-
-
-function testcase() {
- var _10_4_2_3_c_2_s = 0;
- function _10_4_2_3_c_2_sFunc() {
- 'use strict';
- eval("var _10_4_2_3_c_2_s = 1");
- return _10_4_2_3_c_2_s===0;
- }
- return _10_4_2_3_c_2_sFunc();
- }
-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: > + Calling code in strict mode - eval cannot instantiate variable in + the variable environment of the calling context +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + var _10_4_2_3_c_2_s = 0; + function _10_4_2_3_c_2_sFunc() { + 'use strict'; + eval("var _10_4_2_3_c_2_s = 1"); + return _10_4_2_3_c_2_s===0; + } + return _10_4_2_3_c_2_sFunc(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js index e0d77031f..e601d510a 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js @@ -1,17 +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 ch10/10.4/10.4.2/10.4.2.1-1gs.js
- * @description Strict Mode - eval code cannot instantiate variable in the variable environment of the calling context that invoked the eval if the code of the calling context is strict code
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-eval("var x = 7;");
-x = 9;
-throw NotEarlyError;
+// 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 - eval code cannot instantiate variable in the + variable environment of the calling context that invoked the eval + if the code of the calling context is strict code +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +eval("var x = 7;"); +x = 9; +throw NotEarlyError; diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js index 5fc76cb35..894fa3cf5 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2.1-2-s.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.4/10.4.2/10.4.2.1-2-s.js
- * @description Strict Mode - Strict mode eval code cannot instantiate functions in the variable environment of the caller to eval
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- eval("function _10_4_2_1_2_fun(){}");
- return typeof _10_4_2_1_2_fun === "undefined";
- }
-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 - Strict mode eval code cannot instantiate functions + in the variable environment of the caller to eval +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + eval("function _10_4_2_1_2_fun(){}"); + return typeof _10_4_2_1_2_fun === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js index 89ce85399..06dcc1c21 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2.1-4-s.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.2/10.4.2.1-4-s.js
- * @description Strict Mode - Strict mode eval code cannot instantiate functions in the variable environment of the caller to eval which is contained in strict mode code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- eval("'use strict'; function _10_4_2_1_4_fun(){}");
- return typeof _10_4_2_1_4_fun === "undefined";
- }
-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 - Strict mode eval code cannot instantiate functions + in the variable environment of the caller to eval which is + contained in strict mode code +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + eval("'use strict'; function _10_4_2_1_4_fun(){}"); + return typeof _10_4_2_1_4_fun === "undefined"; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js b/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js index 3a3690ce9..09644ea81 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2.1_A1.js @@ -1,12 +1,12 @@ // Copyright 2011 Google Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch10/10.4/10.4.2/S10.4.2.1_A1.js - * @description Strict indirect eval should not leak top level - * declarations into the global scope - * @onlyStrict - */ +/*--- +description: > + Strict indirect eval should not leak top level declarations into + the global scope +flags: [onlyStrict] +---*/ "use strict"; if (!('foo' in this)) { diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js index 077ae7be1..b37957b30 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T1.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -25,4 +24,3 @@ eval('for(j in this){\nstr2+=j;\n}'); if(!(str1 === str2)){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js index 4903b5b3b..b598e1d6b 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T10.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -25,4 +24,3 @@ eval('for(j in this){\nstr2+=j;\n}'); if(!(str1 === str2)){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js index fb7b1690e..c8b782950 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T11.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ this.x = 1; this.y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js index b7eb20df0..d08fffb78 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T2.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ var x = 1; var y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js index 3b32b2bc2..5f1be6800 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T3.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -25,4 +24,3 @@ eval('for(j in this){\nstr2+=j;\n}'); if(!(str1 === str2)){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js index c5e5d0a04..367abb89a 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T4.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ } y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js index 927a8007d..3df5588b8 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T5.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ } var y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js index b9fb461f6..6ad227206 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T6.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ } this.y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js index 93160490c..73e02d71a 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T7.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ } var y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js index 5376140af..2ce15cbe4 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T8.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ } var y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js index 76d75b8f9..9ae52f34f 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.1_T9.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ var i; var j; @@ -26,4 +25,3 @@ if(!(str1 === str2)){ x = 1; y = 2; - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js index 229cfc63f..f13a63967 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T1.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -28,4 +27,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js index 1707379cf..59be72d28 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T10.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -29,4 +28,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js index b94f2aa56..e0c6e68e4 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T11.js - * @description eval within global execution context - * @noStrict - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +flags: [noStrict] +---*/ function f(){ var i; @@ -31,4 +30,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js index 72611dc49..f128a6611 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T2.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -29,4 +28,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js index f3cd1b0bf..b13f0e87f 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T3.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -29,4 +28,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js index cebe8f3a2..e2a672f54 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T4.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -30,4 +29,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js index 802434849..21c3c097a 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T5.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -30,5 +29,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js index 275f8ce98..ee0b953ff 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T6.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -30,5 +29,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js index 1870bc1fd..47cc6087b 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T7.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -30,6 +29,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - - - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js index 8f1282460..08d3b58ec 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T8.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -30,5 +29,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - - diff --git a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js index e77ca4323..ba5568f0a 100644 --- a/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js +++ b/test/suite/ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The scope chain is initialised to contain the same objects, - * in the same order, as the calling context's scope chain - * - * @path ch10/10.4/10.4.2/S10.4.2_A1.2_T9.js - * @description eval within global execution context - */ +/*--- +info: > + The scope chain is initialised to contain the same objects, + in the same order, as the calling context's scope chain +description: eval within global execution context +---*/ function f(){ var i; @@ -30,5 +29,3 @@ function f(){ if(!f()){ $ERROR("#1: scope chain must contain same objects in the same order as the calling context"); } - - diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js index 9ed7152e4..9f07e3faa 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-1-s.js @@ -1,29 +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 ch10/10.4/10.4.3/10.4.3-1-1-s.js
- * @description this is not coerced to an object in strict mode (Number)
- * @noStrict
- */
-
-
-function testcase() {
-
- function foo()
- {
- 'use strict';
- return typeof(this);
- }
-
- function bar()
- {
- return typeof(this);
- }
-
-
- return foo.call(1) === 'number' && bar.call(1) === 'object';
- }
-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: this is not coerced to an object in strict mode (Number) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo() + { + 'use strict'; + return typeof(this); + } + + function bar() + { + return typeof(this); + } + + + return foo.call(1) === 'number' && bar.call(1) === 'object'; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js index d737cff1a..c82fb4d9f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-10-s.js @@ -1,19 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-10-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f = function () {
- "use strict";
- return typeof this;
-}
-return f() === "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression includes strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var f = function () { + "use strict"; + return typeof this; +} +return f() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js index 98deb941e..971841336 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-100-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-100-s.js
- * @description Strict Mode - checking 'this' (strict function passed as arg to String.prototype.replace from non-strict context)
- * @onlyStrict
- */
-
-function testcase() {
-var x = 3;
-
-function f() {
- "use strict";
- x = this;
- return "a";
-}
-return ("ab".replace("b", f)==="aa") && (x===undefined);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function passed as arg to + String.prototype.replace from non-strict context) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var x = 3; + +function f() { + "use strict"; + x = this; + return "a"; +} +return ("ab".replace("b", f)==="aa") && (x===undefined); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js index b78f81660..8ca4fbfc5 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-100gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-100gs.js
- * @description Strict Mode - checking 'this' (strict function passed as arg to String.prototype.replace from non-strict context)
- * @onlyStrict
- */
-var x = 3;
-
-function f() {
- "use strict";
- x = this;
- return "a";
-}
-if (("ab".replace("b", f)!=="aa") || (x!==undefined)) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' (strict function passed as arg to + String.prototype.replace from non-strict context) +flags: [onlyStrict] +---*/ + +var x = 3; + +function f() { + "use strict"; + x = this; + return "a"; +} +if (("ab".replace("b", f)!=="aa") || (x!==undefined)) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js index bb7c2c7a9..8fa335df0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-101-s.js @@ -1,22 +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 ch10/10.4/10.4.3/10.4.3-1-101-s.js
- * @description Strict Mode - checking 'this' (non-strict function passed as arg to String.prototype.replace from strict context)
- * @noStrict
- */
-
-function testcase() {
-var x = 3;
-
-function f() {
- x = this;
- return "a";
-}
-
-return (function() {"use strict"; return "ab".replace("b", f)==="aa";}()) && (x===fnGlobalObject());
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function passed as arg + to String.prototype.replace from strict context) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var x = 3; + +function f() { + x = this; + return "a"; +} + +return (function() {"use strict"; return "ab".replace("b", f)==="aa";}()) && (x===fnGlobalObject()); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js index bc6eba526..e846d812b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-101gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-101gs.js
- * @description Strict Mode - checking 'this' (non-strict function passed as arg to String.prototype.replace from strict context)
- * @noStrict
- */
-var x = 3;
-
-function f() {
- x = this;
- return "a";
-}
-
-if ( (!(function() {"use strict"; return "ab".replace("b", f)==="aa";}())) || (x!==fnGlobalObject())) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' (non-strict function passed as arg + to String.prototype.replace from strict context) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +var x = 3; + +function f() { + x = this; + return "a"; +} + +if ( (!(function() {"use strict"; return "ab".replace("b", f)==="aa";}())) || (x!==fnGlobalObject())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js index 0a11390ef..98807e688 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-102-s.js @@ -1,23 +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 ch10/10.4/10.4.3/10.4.3-1-102-s.js
- * @description Strict Mode - checking 'this' (strict anonymous function passed as arg to String.prototype.replace from non-strict context)
- * @onlyStrict
- */
-
-function testcase() {
-var x = 3;
-
-return ("ab".replace("b", (function () {
- "use strict";
- return function () {
- x = this;
- return "a";
- }
- })())==="aa") && (x===undefined);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict anonymous function passed as + arg to String.prototype.replace from non-strict context) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var x = 3; + +return ("ab".replace("b", (function () { + "use strict"; + return function () { + x = this; + return "a"; + } + })())==="aa") && (x===undefined); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js index 90505a2fd..1eb1186b3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-102gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-102gs.js
- * @description Strict Mode - checking 'this' (strict anonymous function passed as arg to String.prototype.replace from non-strict context)
- * @onlyStrict
- */
-var x = 3;
-if ( ("ab".replace("b", (function () {
- "use strict";
- return function () {
- x = this;
- return "a";
- }
- })())!=="aa") || (x!==undefined)) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' (strict anonymous function passed as + arg to String.prototype.replace from non-strict context) +flags: [onlyStrict] +---*/ + +var x = 3; +if ( ("ab".replace("b", (function () { + "use strict"; + return function () { + x = this; + return "a"; + } + })())!=="aa") || (x!==undefined)) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js index a0bc90873..044348b6d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-103.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-103.js
- * @description Non strict mode should ToObject thisArg if not an object. Abstract equality operator should succeed.
- */
-
-function testcase(){
- Object.defineProperty(Object.prototype, "x", { get: function () { return this; } });
- if((5).x == 0) return false;
- if(!((5).x == 5)) return false;
- 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: > + Non strict mode should ToObject thisArg if not an object. + Abstract equality operator should succeed. +includes: [runTestCase.js] +---*/ + +function testcase(){ + Object.defineProperty(Object.prototype, "x", { get: function () { return this; } }); + if((5).x == 0) return false; + if(!((5).x == 5)) return false; + return true; +} + +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js index 42f89deb3..37b1191a4 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-104.js @@ -1,20 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-104.js
- * @onlyStrict
- * @description Strict mode should not ToObject thisArg if not an object. Strict equality operator should succeed.
- */
-
-
-function testcase(){
- Object.defineProperty(Object.prototype, "x", { get: function () { "use strict"; return this; } });
- if(!((5).x === 5)) return false;
- 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: > + Strict mode should not ToObject thisArg if not an object. Strict + equality operator should succeed. +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase(){ + Object.defineProperty(Object.prototype, "x", { get: function () { "use strict"; return this; } }); + if(!((5).x === 5)) return false; + return true; +} + +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js index a66b850cf..3467792b5 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-105.js @@ -1,21 +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.
-/**
- * Created based on feedback in https://bugs.ecmascript.org/show_bug.cgi?id=333
- *
- * @path ch10/10.4/10.4.3/10.4.3-1-105.js
- * @description Non strict mode should ToObject thisArg if not an object. Return type should be object and strict equality should fail.
- */
-
- function testcase(){
- Object.defineProperty(Object.prototype, "x", { get: function () { return this; } });
- if((5).x === 5) return false;
- if(!(typeof (5).x === "object")) return false;
- 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. + +/*--- +info: > + Created based on feedback in + https://bugs.ecmascript.org/show_bug.cgi?id=333 +description: > + Non strict mode should ToObject thisArg if not an object. Return + type should be object and strict equality should fail. +includes: [runTestCase.js] +---*/ + +function testcase(){ + Object.defineProperty(Object.prototype, "x", { get: function () { return this; } }); + if((5).x === 5) return false; + if(!(typeof (5).x === "object")) return false; + return true; +} + +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js index 36afbda2a..8a1b63f8c 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-106.js @@ -1,20 +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.
-/**
- * Created based on feedback in https://bugs.ecmascript.org/show_bug.cgi?id=333
- *
- * @path ch10/10.4/10.4.3/10.4.3-1-106.js
- * @onlyStrict
- * @description Strict mode should not ToObject thisArg if not an object. Return type should be 'number'.
- */
-
- function testcase(){
- Object.defineProperty(Object.prototype, "x", { get: function () { "use strict"; return this; } });
- if(!(typeof (5).x === "number")) return false;
- 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. + +/*--- +info: > + Created based on feedback in + https://bugs.ecmascript.org/show_bug.cgi?id=333 +description: > + Strict mode should not ToObject thisArg if not an object. Return + type should be 'number'. +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase(){ + Object.defineProperty(Object.prototype, "x", { get: function () { "use strict"; return this; } }); + if(!(typeof (5).x === "number")) return false; + return true; +} + +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.js index 74ee475ae..50ca536d3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-10gs.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 ch10/10.4/10.4.3/10.4.3-1-10gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-var f = function () {
- "use strict";
- return typeof this;
-}
-if (f() !== "undefined") {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var f = function () { + "use strict"; + return typeof this; +} +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js index 8f7813338..9d1047e11 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-11-s.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-11-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-return (function () {
- return typeof this;
-})() === "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +return (function () { + return typeof this; +})() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js index 3be7db62a..8bd814301 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-11gs.js @@ -1,18 +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 ch10/10.4/10.4.3/10.4.3-1-11gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-if ((function () {
- return typeof this;
-})() !== "undefined") {
- throw "'this' had incorrect value!";
-}
-
+// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +if ((function () { + return typeof this; +})() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js index a88b4c03f..727b12dc9 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-12-s.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-12-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-return (function () {
- "use strict";
- return typeof this;
-})() === "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + includes strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +return (function () { + "use strict"; + return typeof this; +})() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js index 0bb4a9781..89a79fab1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-12gs.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-12gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-if ((function () {
- "use strict";
- return typeof this;
-})() !== "undefined") {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression includes strict directive prologue) +flags: [onlyStrict] +---*/ + +if ((function () { + "use strict"; + return typeof this; +})() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js index c4ebc9d39..9f562a446 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-13-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-13-s.js
- * @description Strict Mode - checking 'this' (Function constructor defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f = Function("return typeof this;");
-return f() !== "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Function constructor defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var f = Function("return typeof this;"); +return f() !== "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js index d6c4d550a..c23774f00 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-13gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-13gs.js
- * @description Strict - checking 'this' from a global scope (Function constructor defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f = Function("return typeof this;");
-if (f() === "undefined") {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Function constructor + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var f = Function("return typeof this;"); +if (f() === "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js index fe45b6931..9935be2f5 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-14-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-14-s.js
- * @description Strict Mode - checking 'this' (Function constructor includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f = Function("\"use strict\";\nreturn typeof this;");
-return f() === "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Function constructor includes + strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var f = Function("\"use strict\";\nreturn typeof this;"); +return f() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js index cec5e66d8..a823be7a9 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-14gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-14gs.js
- * @description Strict - checking 'this' from a global scope (Function constructor includes strict directive prologue)
- * @onlyStrict
- */
-
-var f = Function("\"use strict\";\nreturn typeof this;");
-if (f() !== "undefined") {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Function constructor + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var f = Function("\"use strict\";\nreturn typeof this;"); +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js index 961d55b6d..2df598ee7 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-15-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-15-s.js
- * @description Strict Mode - checking 'this' (New'ed Function constructor defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f = new Function("return typeof this;");
-return f() !== "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed Function constructor defined + within strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var f = new Function("return typeof this;"); +return f() !== "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js index 26d75fa64..aecf7b19b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-15gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-15gs.js
- * @description Strict - checking 'this' from a global scope (New'ed Function constructor defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f = new Function("return typeof this;");
-if (f() === "undefined") {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (New'ed Function + constructor defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var f = new Function("return typeof this;"); +if (f() === "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js index 6167f4c4a..175d2c3e2 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-16-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-16-s.js
- * @description Strict Mode - checking 'this' (New'ed Function constructor includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f = new Function("\"use strict\";\nreturn typeof this;");
-return f() === "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed Function constructor + includes strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var f = new Function("\"use strict\";\nreturn typeof this;"); +return f() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js index b7a2287e7..74a82fc46 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-16gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-16gs.js
- * @description Strict - checking 'this' from a global scope (New'ed Function constructor includes strict directive prologue)
- * @onlyStrict
- */
-
-var f = new Function("\"use strict\";\nreturn typeof this;");
-if (f() !== "undefined") {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (New'ed Function + constructor includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var f = new Function("\"use strict\";\nreturn typeof this;"); +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js index 4d2caf063..21b806d45 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-17-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-17-s.js
- * @description Strict Mode - checking 'this' (eval used within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-return (eval("typeof this") === "undefined") && (eval("this") !== fnGlobalObject());
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (eval used within strict mode) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +"use strict"; +return (eval("typeof this") === "undefined") && (eval("this") !== fnGlobalObject()); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js index f583c6e89..bd52f0fe4 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-17gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-17gs.js
- * @description Strict - checking 'this' from a global scope (eval used within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-if (eval("this") !== fnGlobalObject()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (eval used within + strict mode) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +"use strict"; +if (eval("this") !== fnGlobalObject()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js index e1d35e497..c4e75abc8 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-18gs.js @@ -1,14 +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 ch10/10.4/10.4.3/10.4.3-1-18gs.js
- * @description Strict - checking 'this' from a global scope (eval includes strict directive prologue)
- * @onlyStrict
- */
-
-if (eval("\"use strict\";\nthis") !== fnGlobalObject()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (eval includes strict + directive prologue) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +if (eval("\"use strict\";\nthis") !== fnGlobalObject()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js index c2d412838..489ae9b68 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-19-s.js @@ -1,17 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-19-s.js
- * @description Strict Mode - checking 'this' (indirect eval used within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var my_eval = eval;
-return my_eval("this") === fnGlobalObject();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (indirect eval used within strict + mode) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +"use strict"; +var my_eval = eval; +return my_eval("this") === fnGlobalObject(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js index 2d1c35edc..1647a9f8d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-19gs.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-19gs.js
- * @description Strict - checking 'this' from a global scope (indirect eval used within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var my_eval = eval;
-if (my_eval("this") !== fnGlobalObject()) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (indirect eval used + within strict mode) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +"use strict"; +var my_eval = eval; +if (my_eval("this") !== fnGlobalObject()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js index 0efe7fd65..3c25a997a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-2-s.js @@ -1,29 +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 ch10/10.4/10.4.3/10.4.3-1-2-s.js
- * @description this is not coerced to an object in strict mode (string)
- * @noStrict
- */
-
-
-function testcase() {
-
- function foo()
- {
- 'use strict';
- return typeof(this);
- }
-
- function bar()
- {
- return typeof(this);
- }
-
-
- return foo.call('1') === 'string' && bar.call('1') === 'object';
- }
-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: this is not coerced to an object in strict mode (string) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo() + { + 'use strict'; + return typeof(this); + } + + function bar() + { + return typeof(this); + } + + + return foo.call('1') === 'string' && bar.call('1') === 'object'; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js index 869bc53e4..6c151716d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-20-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-20-s.js
- * @description Strict Mode - checking 'this' (indirect eval includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var my_eval = eval;
-return my_eval("\"use strict\";\nthis") === fnGlobalObject();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (indirect eval includes strict + directive prologue) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var my_eval = eval; +return my_eval("\"use strict\";\nthis") === fnGlobalObject(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js index 48544cb0e..b346e6bc2 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-20gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-20gs.js
- * @description Strict - checking 'this' from a global scope (indirect eval includes strict directive prologue)
- * @onlyStrict
- */
-
-var my_eval = eval;
-if (my_eval("\"use strict\";\nthis") !== fnGlobalObject() ) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (indirect eval + includes strict directive prologue) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +var my_eval = eval; +if (my_eval("\"use strict\";\nthis") !== fnGlobalObject() ) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js index 915f54ce8..a31f2b402 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-21-s.js @@ -1,19 +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 ch10/10.4/10.4.3/10.4.3-1-21-s.js
- * @description Strict Mode - checking 'this' (New'ed object from FunctionDeclaration defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-function f() {
- return this;
-}
-return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined");
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed object from + FunctionDeclaration defined within strict mode) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +"use strict"; +function f() { + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js index b12634049..43faca4f9 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-21gs.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-21gs.js
- * @description Strict - checking 'this' from a global scope (New'ed object from FunctionDeclaration defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-function f() {
- return this;
-}
-if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) {
- throw "'this' had incorrect value!";
-}
-
+// 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 - checking 'this' from a global scope (New'ed object from + FunctionDeclaration defined within strict mode) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +"use strict"; +function f() { + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js index 55d66e60c..8fd9e72cf 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-22-s.js @@ -1,20 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-22-s.js
- * @description Strict Mode - checking 'this' (New'ed object from FunctionDeclaration includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-function f() {
- "use strict";
- return this;
-}
-return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined");
-
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed object from + FunctionDeclaration includes strict directive prologue) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { + "use strict"; + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); + +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js index 1abde0e2f..f5f05df61 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-22gs.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-22gs.js
- * @description Strict - checking 'this' from a global scope (New'ed object from FunctionDeclaration includes strict directive prologue)
- * @onlyStrict
- */
-
-function f() {
- "use strict";
- return this;
-}
-if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) {
- throw "'this' had incorrect value!";
-}
-
+// 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 - checking 'this' from a global scope (New'ed object from + FunctionDeclaration includes strict directive prologue) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { + "use strict"; + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js index b2c40be4f..358fee765 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-23-s.js @@ -1,20 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-23-s.js
- * @description Strict Mode - checking 'this' (New'ed object from FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f = function () {
- return this;
-}
-return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined");
-
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed object from + FunctionExpression defined within strict mode) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +"use strict"; +var f = function () { + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); + +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js index 4aab84291..c472375c2 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-23gs.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-23gs.js
- * @description Strict - checking 'this' from a global scope (New'ed object from FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f = function () {
- return this;
-}
-if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (New'ed object from + FunctionExpression defined within strict mode) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +"use strict"; +var f = function () { + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js index 3499abe4d..1c2b3e3c4 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-24-s.js @@ -1,19 +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 ch10/10.4/10.4.3/10.4.3-1-24-s.js
- * @description Strict Mode - checking 'this' (New'ed object from FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f = function () {
- "use strict";
- return this;
-}
-return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined");
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed object from + FunctionExpression includes strict directive prologue) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var f = function () { + "use strict"; + return this; +} +return ( (new f())!==fnGlobalObject()) && (typeof (new f()) !== "undefined"); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js index 38d5e1490..5f941c5ae 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-24gs.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-24gs.js
- * @description Strict - checking 'this' from a global scope (New'ed object from FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-var f = function () {
- "use strict";
- return this;
-}
-if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (New'ed object from + FunctionExpression includes strict directive prologue) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +var f = function () { + "use strict"; + return this; +} +if (((new f()) === fnGlobalObject()) || (typeof (new f()) === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js index 138802f64..196837e0a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-25-s.js @@ -1,19 +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 ch10/10.4/10.4.3/10.4.3-1-25-s.js
- * @description Strict Mode - checking 'this' (New'ed object from Anonymous FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var obj = new (function () {
- return this;
-});
-return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined");
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed object from Anonymous + FunctionExpression defined within strict mode) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +"use strict"; +var obj = new (function () { + return this; +}); +return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined"); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js index 30ac917cb..2bbcb6ca1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-25gs.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-25gs.js
- * @description Strict - checking 'this' from a global scope (New'ed object from Anonymous FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var obj = new (function () {
- return this;
-});
-if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) {
- throw "'this' had incorrect value!";
-}
-
+// 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 - checking 'this' from a global scope (New'ed object from + Anonymous FunctionExpression defined within strict mode) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +"use strict"; +var obj = new (function () { + return this; +}); +if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js index a015f4082..55d67f778 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-26-s.js @@ -1,19 +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 ch10/10.4/10.4.3/10.4.3-1-26-s.js
- * @description Strict Mode - checking 'this' (New'ed object from Anonymous FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var obj = new (function () {
- "use strict";
- return this;
-});
-return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined");
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (New'ed object from Anonymous + FunctionExpression includes strict directive prologue) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var obj = new (function () { + "use strict"; + return this; +}); +return (obj !== fnGlobalObject()) && ((typeof obj) !== "undefined"); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js index e19bce342..d660f7415 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-26gs.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-26gs.js
- * @description Strict - checking 'this' from a global scope (New'ed object from Anonymous FunctionExpression includes strict directive prologue)
- * @onlyStrict
- */
-
-var obj = new (function () {
- "use strict";
- return this;
-});
-if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (New'ed object from + Anonymous FunctionExpression includes strict directive prologue) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +var obj = new (function () { + "use strict"; + return this; +}); +if ((obj === fnGlobalObject()) || (typeof obj === "undefined")) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js index 54eda820f..1c5b0eae3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-27-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-27-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionDeclaration inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-function f1() {
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration defined within + a FunctionDeclaration inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +function f1() { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.js index 0cb1cb4f2..6d44954ab 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-27gs.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 ch10/10.4/10.4.3/10.4.3-1-27gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionDeclaration inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-function f1() {
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within a FunctionDeclaration inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +function f1() { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js index c2a5578a8..32294dccd 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-28-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-28-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionDeclaration inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-function f1() {
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within a + FunctionDeclaration inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +function f1() { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.js index 663a18e00..f5cfefebc 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-28gs.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 ch10/10.4/10.4.3/10.4.3-1-28gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionDeclaration inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-function f1() {
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within a FunctionDeclaration inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +function f1() { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js index 87ea431d7..926949c12 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-29-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-29-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionDeclaration inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-function f1() {
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within a FunctionDeclaration inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +function f1() { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js index 416f1b4f3..e26c0e43b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-29gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-29gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionDeclaration inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-function f1() {
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within a FunctionDeclaration inside + strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +function f1() { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js index 19bafdcff..0ef7107e2 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-3-s.js @@ -1,27 +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 ch10/10.4/10.4.3/10.4.3-1-3-s.js
- * @description this is not coerced to an object in strict mode (undefined)
- * @noStrict
- */
-
-
-function testcase() {
-
- function foo()
- {
- 'use strict';
- return typeof(this);
- }
-
- function bar()
- {
- return typeof(this);
- }
- return foo.call(undefined) === 'undefined' && bar.call() === 'object';
- }
-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: this is not coerced to an object in strict mode (undefined) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo() + { + 'use strict'; + return typeof(this); + } + + function bar() + { + return typeof(this); + } + return foo.call(undefined) === 'undefined' && bar.call() === 'object'; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js index b4085931b..0d9aec5c0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-30-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-30-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f1 = function () {
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration defined within + a FunctionExpression inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var f1 = function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.js index ab3c6222d..d868e21b1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-30gs.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 ch10/10.4/10.4.3/10.4.3-1-30gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f1 = function () {
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within a FunctionExpression inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var f1 = function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js index dc32ca19e..ef2892469 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-31-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-31-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f1 = function () {
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within a + FunctionExpression inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var f1 = function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.js index 1bbb2d161..2827d21a4 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-31gs.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 ch10/10.4/10.4.3/10.4.3-1-31gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f1 = function () {
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within a FunctionExpression inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var f1 = function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js index 4ba988920..0a2b5f7ca 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-32-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-32-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f1 = function () {
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within a FunctionExpression inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var f1 = function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js index 1cd2ad05a..16a2d55fa 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-32gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-32gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f1 = function () {
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within a FunctionExpression inside + strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var f1 = function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js index 6c4d66e2e..6a71187ac 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-33-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-33-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within an Anonymous FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-return (function () {
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration defined within + an Anonymous FunctionExpression inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +return (function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js index c288566cb..beaac2a32 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-33gs.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-33gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within an Anonymous FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-if (! ((function () {
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})())) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within an Anonymous FunctionExpression inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +if (! ((function () { + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js index 9cf25b53d..e09ad0e27 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-34-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-34-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within an Anonymous FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-return (function () {
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within + an Anonymous FunctionExpression inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +return (function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js index 72980aa41..7fcc11dac 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-34gs.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-34gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within an Anonymous FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-if (! ((function () {
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within an Anonymous FunctionExpression inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +if (! ((function () { + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js index 8f7abb36f..fc40fe852 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-35-s.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-35-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within an Anonymous FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-return (function () {
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within an Anonymous FunctionExpression inside strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +return (function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js index ecee18fe3..06fc8dde1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-35gs.js @@ -1,19 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-35gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within an Anonymous FunctionExpression inside strict mode)
- * @onlyStrict
- */
-
-"use strict";
-if (! ((function () {
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within an Anonymous FunctionExpression + inside strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +if (! ((function () { + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js index 08bea7cc4..35de15a39 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-36-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-36-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionDeclaration with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-function f1() {
- "use strict";
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration defined within + a FunctionDeclaration with a strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f1() { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js index 88fab9f20..6593aa279 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-36gs.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-36gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionDeclaration with a strict directive prologue)
- * @onlyStrict
- */
-
-function f1() {
- "use strict";
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within a FunctionDeclaration with a strict directive + prologue) +flags: [onlyStrict] +---*/ + +function f1() { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js index 93e7fde28..dbacec527 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-37-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-37-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionDeclaration with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-function f1() {
- "use strict";
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within a + FunctionDeclaration with a strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f1() { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js index 795b6032d..91ab8f2dd 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-37gs.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-37gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionDeclaration with a strict directive prologue)
- * @onlyStrict
- */
-
-function f1() {
- "use strict";
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within a FunctionDeclaration with a strict directive + prologue) +flags: [onlyStrict] +---*/ + +function f1() { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js index f496d4ed0..929ad8696 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-38-s.js @@ -1,21 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-38-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionDeclaration with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-function f1() {
- "use strict";
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within a FunctionDeclaration with a strict directive + prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f1() { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js index 1c00b742e..fe33ec217 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-38gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-38gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionDeclaration with a strict directive prologue)
- * @onlyStrict
- */
-
-function f1() {
- "use strict";
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within a FunctionDeclaration with a + strict directive prologue) +flags: [onlyStrict] +---*/ + +function f1() { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js index 22478bc26..b07803e54 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-39-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-39-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within a FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f1 = function () {
- "use strict";
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration defined within + a FunctionExpression with a strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var f1 = function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js index 7ec3adf91..c00fb8ece 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-39gs.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-39gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within a FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-var f1 = function () {
- "use strict";
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within a FunctionExpression with a strict directive + prologue) +flags: [onlyStrict] +---*/ + +var f1 = function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js index 28bd8f059..f84fea34d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-4-s.js @@ -1,29 +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 ch10/10.4/10.4.3/10.4.3-1-4-s.js
- * @description this is not coerced to an object in strict mode (boolean)
- * @noStrict
- */
-
-
-function testcase() {
-
- function foo()
- {
- 'use strict';
- return typeof(this);
- }
-
- function bar()
- {
- return typeof(this);
- }
-
-
- return foo.call(true) === 'boolean' && bar.call(true) === 'object';
- }
-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: this is not coerced to an object in strict mode (boolean) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo() + { + 'use strict'; + return typeof(this); + } + + function bar() + { + return typeof(this); + } + + + return foo.call(true) === 'boolean' && bar.call(true) === 'object'; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js index b90817f63..cae158a6f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-40-s.js @@ -1,22 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-40-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within a FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f1 = function () {
- "use strict";
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within a + FunctionExpression with a strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var f1 = function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js index 2d8fbf0ba..e28429002 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-40gs.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-40gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within a FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-var f1 = function () {
- "use strict";
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within a FunctionExpression with a strict directive + prologue) +flags: [onlyStrict] +---*/ + +var f1 = function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js index 48495e392..3546cffc9 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-41-s.js @@ -1,21 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-41-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within a FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var f1 = function () {
- "use strict";
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within a FunctionExpression with a strict directive + prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var f1 = function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js index 43cba61c8..3c00f0076 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-41gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-41gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within a FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-var f1 = function () {
- "use strict";
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within a FunctionExpression with a + strict directive prologue) +flags: [onlyStrict] +---*/ + +var f1 = function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js index c4f705857..ff7922a69 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-42-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-42-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within an Anonymous FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-return (function () {
- "use strict";
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration defined within + an Anonymous FunctionExpression with a strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +return (function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js index b1802bf16..41f4ed3e5 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-42gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-42gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within an Anonymous FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-if (! ((function () {
- "use strict";
- function f() {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within an Anonymous FunctionExpression with a strict + directive prologue) +flags: [onlyStrict] +---*/ + +if (! ((function () { + "use strict"; + function f() { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js index 6575e56b9..0d2b490da 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-43-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-43-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-return (function () {
- "use strict";
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within + an Anonymous FunctionExpression with a strict directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +return (function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js index 0da4b7871..2f54d562c 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-43gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-43gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-if (! ((function () {
- "use strict";
- var f = function () {
- return typeof this;
- }
- return (f()==="undefined") && ((typeof this)==="undefined");
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within an Anonymous FunctionExpression with a strict + directive prologue) +flags: [onlyStrict] +---*/ + +if (! ((function () { + "use strict"; + var f = function () { + return typeof this; + } + return (f()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js index b7ac11d8d..a10ded2f0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-44-s.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-44-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-return (function () {
- "use strict";
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression + defined within an Anonymous FunctionExpression with a strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +return (function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js index 2300e4acb..2011deb9d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-44gs.js @@ -1,19 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-44gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression defined within an Anonymous FunctionExpression with a strict directive prologue)
- * @onlyStrict
- */
-
-if (! ((function () {
- "use strict";
- return ((function () {
- return typeof this;
- })()==="undefined") && ((typeof this)==="undefined");
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression defined within an Anonymous FunctionExpression + with a strict directive prologue) +flags: [onlyStrict] +---*/ + +if (! ((function () { + "use strict"; + return ((function () { + return typeof this; + })()==="undefined") && ((typeof this)==="undefined"); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js index e23f9fef0..b842ddd4b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-45-s.js @@ -1,22 +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 ch10/10.4/10.4.3/10.4.3-1-45-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration with a strict directive prologue defined within a FunctionDeclaration)
- * @noStrict
- */
-
-function testcase() {
-function f1() {
- function f() {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration with a strict + directive prologue defined within a FunctionDeclaration) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f1() { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js index ce99d6574..726690214 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-45gs.js @@ -1,21 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-45gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration with a strict directive prologue defined within a FunctionDeclaration)
- * @noStrict
- */
-
-function f1() {
- function f() {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + with a strict directive prologue defined within a + FunctionDeclaration) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f1() { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js index 5945b2b21..0ca914625 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-46-s.js @@ -1,22 +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 ch10/10.4/10.4.3/10.4.3-1-46-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression with a strict directive prologue defined within a FunctionDeclaration)
- * @noStrict
- */
-
-function testcase() {
-function f1() {
- var f = function () {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression with a strict + directive prologue defined within a FunctionDeclaration) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f1() { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js index 3d0ddd895..c424f491e 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-46gs.js @@ -1,21 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-46gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionDeclaration)
- * @noStrict
- */
-
-function f1() {
- var f = function () {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + with a strict directive prologue defined within a + FunctionDeclaration) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f1() { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js index 6a5fe9d40..6852fc0e5 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-47-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-47-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionDeclaration)
- * @noStrict
- */
-
-function testcase() {
-function f1() {
- return ((function () {
- "use strict";
- return typeof this;
- })()==="undefined") && (this===fnGlobalObject());
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression with a + strict directive prologue defined within a FunctionDeclaration) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f1() { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js index 78884f8c6..ce6ef21f9 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-47gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-47gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionDeclaration)
- * @noStrict
- */
-
-function f1() {
- return ((function () {
- "use strict";
- return typeof this;
- })()==="undefined") && (this===fnGlobalObject());
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression with a strict directive prologue defined within + a FunctionDeclaration) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f1() { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js index 3c4d49af4..281288e49 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-48-s.js @@ -1,22 +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 ch10/10.4/10.4.3/10.4.3-1-48-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration with a strict directive prologue defined within a FunctionExpression)
- * @noStrict
- */
-
-function testcase() {
-var f1 = function () {
- function f() {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration with a strict + directive prologue defined within a FunctionExpression) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var f1 = function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js index b6d619176..bfd715d30 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-48gs.js @@ -1,21 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-48gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration with a strict directive prologue defined within a FunctionExpression)
- * @noStrict
- */
-
-var f1 = function () {
- function f() {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + with a strict directive prologue defined within a + FunctionExpression) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +var f1 = function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js index 3ae616eaa..4d521496f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-49-s.js @@ -1,22 +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 ch10/10.4/10.4.3/10.4.3-1-49-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression with a strict directive prologue defined within a FunctionExpression)
- * @noStrict
- */
-
-function testcase() {
-var f1 = function () {
- var f = function () {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression with a strict + directive prologue defined within a FunctionExpression) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var f1 = function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js index d6aee3a91..1b6a45563 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-49gs.js @@ -1,21 +1,25 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-49gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within a FunctionExpression)
- * @noStrict
- */
-
-var f1 = function () {
- var f = function () {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + with a strict directive prologue defined within a + FunctionExpression) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +var f1 = function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js index 5d64cea6b..fdf1fa1dd 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-5-s.js @@ -1,32 +1,32 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-5-s.js
- * @description this is not coerced to an object in strict mode (function)
- * @onlyStrict
- */
-
-
-function testcase() {
-
- function foo()
- {
- 'use strict';
- return typeof(this);
- }
-
- function bar()
- {
- return typeof(this);
- }
-
- function foobar()
- {
- }
-
- return foo.call(foobar) === 'function' && bar.call(foobar) === 'function';
- }
-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: this is not coerced to an object in strict mode (function) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo() + { + 'use strict'; + return typeof(this); + } + + function bar() + { + return typeof(this); + } + + function foobar() + { + } + + return foo.call(foobar) === 'function' && bar.call(foobar) === 'function'; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js index ad273ecb1..feb2bde58 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-50-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-50-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionExpression)
- * @noStrict
- */
-
-function testcase() {
-var f1 = function () {
- return ((function () {
- "use strict";
- return typeof this;
- })()==="undefined") && (this===fnGlobalObject());
-}
-return f1();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression with a + strict directive prologue defined within a FunctionExpression) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +var f1 = function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +return f1(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js index 21cd879ef..508990195 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-50gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-50gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression with a strict directive prologue defined within a FunctionExpression)
- * @noStrict
- */
-
-var f1 = function () {
- return ((function () {
- "use strict";
- return typeof this;
- })()==="undefined") && (this===fnGlobalObject());
-}
-if (! f1()) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression with a strict directive prologue defined within + a FunctionExpression) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +var f1 = function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +} +if (! f1()) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js index e8935366e..c4c28f331 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-51-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-51-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration with a strict directive prologue defined within an Anonymous FunctionExpression)
- * @noStrict
- */
-
-function testcase() {
-return (function () {
- function f() {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionDeclaration with a strict + directive prologue defined within an Anonymous FunctionExpression) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +return (function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js index 52f8e35a6..68736ba0e 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-51gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-51gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration with a strict directive prologue defined within an Anonymous FunctionExpression)
- * @noStrict
- */
-
-if (! ((function () {
- function f() {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionDeclaration + with a strict directive prologue defined within an Anonymous + FunctionExpression) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +if (! ((function () { + function f() { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js index b2c3a0082..85ce0c23d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-52-s.js @@ -1,21 +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 ch10/10.4/10.4.3/10.4.3-1-52-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression)
- * @noStrict
- */
-
-function testcase() {
-return (function () {
- var f = function () {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression with a strict + directive prologue defined within an Anonymous FunctionExpression) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +return (function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js index cc617750d..36773a758 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-52gs.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-52gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression)
- * @noStrict
- */
-
-if (! ((function () {
- var f = function () {
- "use strict";
- return typeof this;
- }
- return (f()==="undefined") && (this===fnGlobalObject());
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + with a strict directive prologue defined within an Anonymous + FunctionExpression) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +if (! ((function () { + var f = function () { + "use strict"; + return typeof this; + } + return (f()==="undefined") && (this===fnGlobalObject()); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js index 2324bf44f..69e0338a2 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-53-s.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-53-s.js
- * @description Strict Mode - checking 'this' (Anonymous FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression)
- * @noStrict
- */
-
-function testcase() {
-return (function () {
- return ((function () {
- "use strict";
- return typeof this;
- })()==="undefined") && (this===fnGlobalObject());
-})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Anonymous FunctionExpression with a + strict directive prologue defined within an Anonymous + FunctionExpression) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +return (function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js index 0c6581f2e..b0bc6861f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-53gs.js @@ -1,19 +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 ch10/10.4/10.4.3/10.4.3-1-53gs.js
- * @description Strict - checking 'this' from a global scope (Anonymous FunctionExpression with a strict directive prologue defined within an Anonymous FunctionExpression)
- * @noStrict
- */
-
-if (! ((function () {
- return ((function () {
- "use strict";
- return typeof this;
- })()==="undefined") && (this===fnGlobalObject());
-})())) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Anonymous + FunctionExpression with a strict directive prologue defined within + an Anonymous FunctionExpression) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +if (! ((function () { + return ((function () { + "use strict"; + return typeof this; + })()==="undefined") && (this===fnGlobalObject()); +})())) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js index ac481d610..d4b5f48fa 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-54-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-54-s.js
- * @description Strict Mode - checking 'this' (Literal getter defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var o = { get foo() { return this; } }
-return o.foo===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Literal getter defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var o = { get foo() { return this; } } +return o.foo===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js index 571ad634e..c2f04093a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-54gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-54gs.js
- * @description Strict - checking 'this' from a global scope (Literal getter defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var o = { get foo() { return this; } }
-if (o.foo!==o) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Literal getter + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var o = { get foo() { return this; } } +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js index 49acc2d11..f25c6bc4b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-55-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-55-s.js
- * @description Strict Mode - checking 'this' (Literal getter includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var o = { get foo() { "use strict"; return this; } }
-return o.foo===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Literal getter includes strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = { get foo() { "use strict"; return this; } } +return o.foo===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js index ab3ccbbc5..3df85463d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-55gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-55gs.js
- * @description Strict - checking 'this' from a global scope (Literal getter includes strict directive prologue)
- * @onlyStrict
- */
-
-var o = { get foo() { "use strict"; return this; } }
-if (o.foo!==o) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Literal getter + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var o = { get foo() { "use strict"; return this; } } +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js index 1a492c462..e6aa7f8ce 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-56-s.js @@ -1,19 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-56-s.js
- * @description Strict Mode - checking 'this' (Literal setter defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var x = 2;
-var o = { set foo(stuff) { x=this; } }
-o.foo = 3;
-return x===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Literal setter defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var x = 2; +var o = { set foo(stuff) { x=this; } } +o.foo = 3; +return x===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.js index 7ea7c7a3f..4b26a0747 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-56gs.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 ch10/10.4/10.4.3/10.4.3-1-56gs.js
- * @description Strict - checking 'this' from a global scope (Literal setter defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var x = 2;
-var o = { set foo(stuff) { x=this; } }
-o.foo = 3;
-if (x!==o) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (Literal setter + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var x = 2; +var o = { set foo(stuff) { x=this; } } +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js index bcd4ef62c..a6149545c 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-57-s.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-57-s.js
- * @description Strict Mode - checking 'this' (Literal setter includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var x = 2;
-var o = { set foo(stuff) { "use strict"; x=this; } }
-o.foo = 3;
-return x===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Literal setter includes strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var x = 2; +var o = { set foo(stuff) { "use strict"; x=this; } } +o.foo = 3; +return x===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js index e59df3357..f8f19472c 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-57gs.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-57gs.js
- * @description Strict - checking 'this' from a global scope (Literal setter includes strict directive prologue)
- * @onlyStrict
- */
-
-var x = 2;
-var o = { set foo(stuff) { "use strict"; x=this; } }
-o.foo = 3;
-if (x!==o) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (Literal setter + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var x = 2; +var o = { set foo(stuff) { "use strict"; x=this; } } +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js index 964f8d435..44358987e 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-58-s.js @@ -1,18 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-58-s.js
- * @description Strict Mode - checking 'this' (Injected getter defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var o = {};
-Object.defineProperty(o, "foo", { get: function() { return this; } });
-return o.foo===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Injected getter defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var o = {}; +Object.defineProperty(o, "foo", { get: function() { return this; } }); +return o.foo===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js index 166e44079..17655967e 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-58gs.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-58gs.js
- * @description Strict - checking 'this' from a global scope (Injected getter defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var o = {};
-Object.defineProperty(o, "foo", { get : function() { return this; } });
-if (o.foo!==o) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Injected getter + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var o = {}; +Object.defineProperty(o, "foo", { get : function() { return this; } }); +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js index 7d0afddf5..4bd379437 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-59-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-59-s.js
- * @description Strict Mode - checking 'this' (Injected getter includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } });
-return o.foo===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Injected getter includes strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } }); +return o.foo===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js index 09e1d0648..f38f545f8 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-59gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-59gs.js
- * @description Strict - checking 'this' from a global scope (Injected getter includes strict directive prologue)
- * @onlyStrict
- */
-
-var o = {};
-Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } });
-if (o.foo!==o) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Injected getter + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var o = {}; +Object.defineProperty(o, "foo", { get: function() { "use strict"; return this; } }); +if (o.foo!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js index 1bd803bee..73a691e4b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-60-s.js @@ -1,20 +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 ch10/10.4/10.4.3/10.4.3-1-60-s.js
- * @description Strict Mode - checking 'this' (Injected setter defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var o = {};
-var x = 2;
-Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } });
-o.foo = 3;
-return x===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Injected setter defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } }); +o.foo = 3; +return x===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js index 09053dbd1..7e934fe4d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-60gs.js @@ -1,19 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-60gs.js
- * @description Strict - checking 'this' from a global scope (Injected setter defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var o = {};
-var x = 2;
-Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } });
-o.foo = 3;
-if (x!==o) {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (Injected setter + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { x=this; } }); +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js index 23586b250..7d8c5237a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-61-s.js @@ -1,19 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-61-s.js
- * @description Strict Mode - checking 'this' (Injected setter includes strict directive prologue)
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-var x = 2;
-Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } });
-o.foo = 3;
-return x===o;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (Injected setter includes strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } }); +o.foo = 3; +return x===o; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.js index 2d31c32d8..220b8d6e3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-61gs.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 ch10/10.4/10.4.3/10.4.3-1-61gs.js
- * @description Strict - checking 'this' from a global scope (Injected setter includes strict directive prologue)
- * @onlyStrict
- */
-
-var o = {};
-var x = 2;
-Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } });
-o.foo = 3;
-if (x!==o) {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (Injected setter + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +var o = {}; +var x = 2; +Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; x=this; } }); +o.foo = 3; +if (x!==o) { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js index a2e3c0bb8..4a99cb84f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-62-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-62-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by non-strict function declaration)
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this;};
-function foo() { return f();}
-return foo()===undefined;
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by non-strict function declaration) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this;}; +function foo() { return f();} +return foo()===undefined; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js index 9cd2ae0e7..30b1b5b48 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-62gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-62gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict function declaration)
- * @onlyStrict
- */
-
-function f() { "use strict"; return this;};
-function foo() { return f();}
-if (foo()!==undefined){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by non-strict function declaration) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this;}; +function foo() { return f();} +if (foo()!==undefined){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js index 5b93d280b..e931de93c 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-63-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-63-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by non-strict eval)
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return eval("f();");
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by non-strict eval) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return eval("f();"); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js index 07f7a9cee..95c202569 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-63gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-63gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict eval)
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! eval("f();")){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by non-strict eval) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! eval("f();")){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js index ddb042449..d73863634 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-64-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-64-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by non-strict Function constructor)
- * @onlyStrict
- */
-
-function testcase() {
-fnGlobalObject().f = function() { "use strict"; return this===undefined;};
-return Function("return f();")();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by non-strict Function constructor) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +fnGlobalObject().f = function() { "use strict"; return this===undefined;}; +return Function("return f();")(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js index 6877c8341..6d23df649 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-64gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-64gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict Function constructor)
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! (Function("return f();")())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by non-strict Function constructor) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! (Function("return f();")())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js index 5b0f20a65..ee43f6ac1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-65-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-65-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by non-strict new'ed Function constructor)
- * @onlyStrict
- */
-
-function testcase() {
-fnGlobalObject().f = function() { "use strict"; return this===undefined;};
-return (new Function("return f();"))();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by non-strict new'ed Function constructor) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +fnGlobalObject().f = function() { "use strict"; return this===undefined;}; +return (new Function("return f();"))(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js index 567a12360..0e4349006 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-65gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-65gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by non-strict new'ed Function constructor)
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! ( (new Function("return f();")) () )){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by non-strict new'ed Function constructor) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! ( (new Function("return f();")) () )){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js index 3b4401827..7ae13faf1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-66-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-66-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return f.apply();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.apply()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.apply(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js index 29a609b7a..8652e2769 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-66gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-66gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply())
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! f.apply()){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.apply()) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! f.apply()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js index baf57dc0c..c59fb8f64 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-67-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-67-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(null))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===null;};
-return f.apply(null);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.apply(null)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===null;}; +return f.apply(null); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js index 9122b9fde..2141f88c0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-67gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-67gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(null))
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===null;};
-if (! f.apply(null)){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.apply(null)) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===null;}; +if (! f.apply(null)){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js index 10a5294e1..8f18d9609 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-68-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-68-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(undefined))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return f.apply(undefined);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.apply(undefined)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.apply(undefined); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js index 5bfeee3f0..d11ec5c28 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-68gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-68gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(undefined))
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! f.apply(undefined)){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.apply(undefined)) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! f.apply(undefined)){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js index 8db3b94ce..6bdbd1057 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-69-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-69-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(someObject))
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-function f() { "use strict"; return this===o;};
-return f.apply(o);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.apply(someObject)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +function f() { "use strict"; return this===o;}; +return f.apply(o); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js index f32b45575..080e4494b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-69gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-69gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(someObject))
- * @onlyStrict
- */
-
-var o = {};
-function f() { "use strict"; return this===o;};
-if (! f.apply(o)){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.apply(someObject)) +flags: [onlyStrict] +---*/ + +var o = {}; +function f() { "use strict"; return this===o;}; +if (! f.apply(o)){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js index ae370f766..fafdf813a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-7-s.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-7-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration defined within strict mode)
- * @onlyStrict
- */
-
-
-function testcase() {
-"use strict";
-function f() {
- return typeof this;
-}
-return f() === "undefined";
-}
-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 - checking 'this' (FunctionDeclaration defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +function f() { + return typeof this; +} +return f() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js index d1bf918ee..d94ac9e4d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-70-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-70-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.apply(globalObject))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this;};
-return f.apply(fnGlobalObject()) === fnGlobalObject();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.apply(globalObject)) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { "use strict"; return this;}; +return f.apply(fnGlobalObject()) === fnGlobalObject(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js index 0044b8afd..9c71387d6 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-70gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-70gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.apply(globalObject))
- * @onlyStrict
- */
-
-function f() { "use strict"; return this;};
-if (f.apply(fnGlobalObject()) !== fnGlobalObject()){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.apply(globalObject)) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { "use strict"; return this;}; +if (f.apply(fnGlobalObject()) !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js index 5fe5dcba3..a6c6ad720 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-71-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-71-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return f.call();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.call()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.call(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js index c978be9ad..366ccffe6 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-71gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-71gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call())
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! f.call()){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.call()) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! f.call()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js index b9c669291..683ab4da2 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-72-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-72-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(null))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===null;};
-return f.call(null);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.call(null)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===null;}; +return f.call(null); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js index 49ca243d1..e848e1134 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-72gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-72gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(null))
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===null;};
-if (! f.call(null)){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.call(null)) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===null;}; +if (! f.call(null)){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js index e04b5d7be..2f1f7adcb 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-73-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-73-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(undefined))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return f.call(undefined);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.call(undefined)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.call(undefined); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js index 10a3176db..dfa5d1c86 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-73gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-73gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(undefined))
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! f.call(undefined)){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.call(undefined)) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! f.call(undefined)){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js index 7e2d746e3..47bcffc9b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-74-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-74-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(someObject))
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-function f() { "use strict"; return this===o;};
-return f.call(o);
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.call(someObject)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +function f() { "use strict"; return this===o;}; +return f.call(o); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js index 27a73d67f..feff6fc04 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-74gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-74gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(someObject))
- * @onlyStrict
- */
-
-var o = {};
-function f() { "use strict"; return this===o;};
-if (! f.call(o)){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.call(someObject)) +flags: [onlyStrict] +---*/ + +var o = {}; +function f() { "use strict"; return this===o;}; +if (! f.call(o)){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js index fa8f4d4b0..56d0785ca 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-75-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-75-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.call(globalObject))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this;};
-return f.call(fnGlobalObject()) === fnGlobalObject();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.call(globalObject)) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { "use strict"; return this;}; +return f.call(fnGlobalObject()) === fnGlobalObject(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js index 3df699177..87d1b404d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-75gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-75gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.call(globalObject))
- * @onlyStrict
- */
-
-function f() { "use strict"; return this;};
-if (f.call(fnGlobalObject()) !== fnGlobalObject()){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.call(globalObject)) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { "use strict"; return this;}; +if (f.call(fnGlobalObject()) !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js index 7918f0dfa..3e55ddbcf 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-76-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-76-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind()())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return f.bind()();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.bind()()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.bind()(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js index f61d0e324..0457f92bd 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-76gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-76gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind()())
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! (f.bind()())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.bind()()) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! (f.bind()())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js index fb5614dd9..c158b62e6 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-77-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-77-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(null)())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===null;};
-return f.bind(null)();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.bind(null)()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===null;}; +return f.bind(null)(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js index 51d38c398..78d1d7971 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-77gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-77gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(null)())
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===null;};
-if (! (f.bind(null)())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.bind(null)()) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===null;}; +if (! (f.bind(null)())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js index 3d50f279c..d67bcc012 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-78-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-78-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(undefined)())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this===undefined;};
-return f.bind(undefined)();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.bind(undefined)()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { "use strict"; return this===undefined;}; +return f.bind(undefined)(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js index 8d67642fa..cc1e65f54 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-78gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-78gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(undefined)())
- * @onlyStrict
- */
-
-function f() { "use strict"; return this===undefined;};
-if (! (f.bind(undefined)())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.bind(undefined)()) +flags: [onlyStrict] +---*/ + +function f() { "use strict"; return this===undefined;}; +if (! (f.bind(undefined)())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js index 5dace0a45..9b8df1fb7 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-79-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-79-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(someObject)())
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-function f() { "use strict"; return this===o;};
-return f.bind(o)();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.bind(someObject)()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +function f() { "use strict"; return this===o;}; +return f.bind(o)(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js index a347c004a..3ff714660 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-79gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-79gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(someObject)())
- * @onlyStrict
- */
-
-var o = {};
-function f() { "use strict"; return this===o;};
-if (! (f.bind(o)())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.bind(someObject)()) +flags: [onlyStrict] +---*/ + +var o = {}; +function f() { "use strict"; return this===o;}; +if (! (f.bind(o)())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.js index 23b1c0583..459167364 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-7gs.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 ch10/10.4/10.4.3/10.4.3-1-7gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-function f() {
- return typeof this;
-}
-if (f() !== "undefined") {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (FunctionDeclaration + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +function f() { + return typeof this; +} +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js index 7d6beaa1a..c68bea923 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-8-s.js @@ -1,20 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-8-s.js
- * @description Strict Mode - checking 'this' (FunctionDeclaration includes strict directive prologue)
- * @onlyStrict
- */
-
-
-function testcase() {
-function f() {
- "use strict";
- return typeof this;
-}
-return f() === "undefined";
-}
-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 - checking 'this' (FunctionDeclaration includes strict + directive prologue) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { + "use strict"; + return typeof this; +} +return f() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js index 86951b61a..bde1f45c6 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-80-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-80-s.js
- * @description Strict Mode - checking 'this' (strict function declaration called by Function.prototype.bind(globalObject)())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { "use strict"; return this;};
-return f.bind(fnGlobalObject())() === fnGlobalObject();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (strict function declaration called + by Function.prototype.bind(globalObject)()) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { "use strict"; return this;}; +return f.bind(fnGlobalObject())() === fnGlobalObject(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js index e3ed02e6a..f9e844d54 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-80gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-80gs.js
- * @description Strict - checking 'this' from a global scope (strict function declaration called by Function.prototype.bind(globalObject)())
- * @onlyStrict
- */
-
-function f() { "use strict"; return this;};
-if (f.bind(fnGlobalObject())() !== fnGlobalObject()){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (strict function + declaration called by Function.prototype.bind(globalObject)()) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { "use strict"; return this;}; +if (f.bind(fnGlobalObject())() !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js index 61be6b784..49dbd5439 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-81-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-81-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict function declaration)
- * @noStrict
- */
-
-function testcase() {
-function f() { return this!==undefined;};
-function foo() { "use strict"; return f();}
-return foo();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict function declaration) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { return this!==undefined;}; +function foo() { "use strict"; return f();} +return foo(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js index 0544e0cd7..500f08293 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-81gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-81gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict function declaration)
- * @noStrict
- */
-
-function f() { return this!==undefined;};
-function foo() { "use strict"; return f();}
-if (! foo()){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict function declaration) +flags: [noStrict] +---*/ + +function f() { return this!==undefined;}; +function foo() { "use strict"; return f();} +if (! foo()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js index 0a2b16600..76237925d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-82-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-82-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict eval)
- * @noStrict
- */
-
-function testcase() {
-function f() { return this!==undefined;};
-return (function () {"use strict"; return eval("f();");})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict eval) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { return this!==undefined;}; +return (function () {"use strict"; return eval("f();");})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js index 305435eeb..6f631c1b3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-82gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-82gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict eval)
- * @noStrict
- */
-
-function f() { return this!==undefined;};
-if (! ((function () {"use strict"; return eval("f();");})()) ){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict eval) +flags: [noStrict] +---*/ + +function f() { return this!==undefined;}; +if (! ((function () {"use strict"; return eval("f();");})()) ){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js index f03adeff5..0b983413e 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-83-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-83-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function constructor)
- * @noStrict
- */
-
-function testcase() {
-fnGlobalObject().f = function() {return this!==undefined;};
-return (function () {return Function("\"use strict\";return f();")();})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function constructor) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +fnGlobalObject().f = function() {return this!==undefined;}; +return (function () {return Function("\"use strict\";return f();")();})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js index dfe59d84e..464aa6f41 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-83gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-83gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function constructor)
- * @noStrict
- */
-
-function f() {return this!==undefined;};
-if (! ((function () {return Function("\"use strict\";return f();")();})()) ){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function constructor) +flags: [noStrict] +---*/ + +function f() {return this!==undefined;}; +if (! ((function () {return Function("\"use strict\";return f();")();})()) ){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js index 807817846..3c3daaad7 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-84-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-84-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict new'ed Function constructor)
- * @noStrict
- */
-
-function testcase() {
-fnGlobalObject().f = function() { return this!==undefined;};
-return (function () {return new Function("\"use strict\";return f();")();})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict new'ed Function constructor) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +fnGlobalObject().f = function() { return this!==undefined;}; +return (function () {return new Function("\"use strict\";return f();")();})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js index 23a20910d..13b21a69b 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-84gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-84gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict new'ed Function constructor)
- * @noStrict
- */
-
-function f() { return this!==undefined;};
-if (! ((function () {return new Function("\"use strict\";return f();")();})()) ){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict new'ed Function constructor) +flags: [noStrict] +---*/ + +function f() { return this!==undefined;}; +if (! ((function () {return new Function("\"use strict\";return f();")();})()) ){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js index abdb33b92..b0055eee8 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-85-s.js @@ -1,16 +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 ch10/10.4/10.4.3/10.4.3-1-85-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply())
- * @noStrict
- */
-
-function testcase() {
-function f() { return this!==undefined;};
-return (function () {"use strict"; return f.apply();})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.apply()) +flags: [noStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +function f() { return this!==undefined;}; +return (function () {"use strict"; return f.apply();})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js index 093115f32..eb4a9e1a8 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-85gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-85gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply())
- * @noStrict
- */
-
-function f() { return this!==undefined;};
-if (! ((function () {"use strict"; return f.apply();})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.apply()) +flags: [noStrict] +---*/ + +function f() { return this!==undefined;}; +if (! ((function () {"use strict"; return f.apply();})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js index fca8007f3..cc3987935 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-86-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-86-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(null))
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.apply(null);})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.apply(null)) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.apply(null);})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js index f1e23cce2..3a7fbc6ca 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-86gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-86gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(null))
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.apply(null);})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.apply(null)) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.apply(null);})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js index be4505ace..84ce5d7a0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-87-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-87-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(undefined))
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject()};
-return (function () {"use strict"; return f.apply(undefined);})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.apply(undefined)) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject()}; +return (function () {"use strict"; return f.apply(undefined);})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js index af76c9a8b..b156e92ec 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-87gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-87gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(undefined))
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.apply(undefined);})())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.apply(undefined)) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.apply(undefined);})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js index 72c424567..01004523a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-88-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-88-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(someObject))
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-function f() { return this===o;};
-return (function () {"use strict"; return f.apply(o);})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.apply(someObject)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +function f() { return this===o;}; +return (function () {"use strict"; return f.apply(o);})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js index 8b85f6993..e69957606 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-88gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-88gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(someObject))
- * @onlyStrict
- */
-
-var o = {};
-function f() { return this===o;};
-if (! ((function () {"use strict"; return f.apply(o);})())){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.apply(someObject)) +flags: [onlyStrict] +---*/ + +var o = {}; +function f() { return this===o;}; +if (! ((function () {"use strict"; return f.apply(o);})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js index 451851d5b..45c80e414 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-89-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-89-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.apply(globalObject))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { return this;};
-return (function () {"use strict"; return f.apply(fnGlobalObject()); })() === fnGlobalObject();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.apply(globalObject)) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this;}; +return (function () {"use strict"; return f.apply(fnGlobalObject()); })() === fnGlobalObject(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js index 68f415a64..5ec17a401 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-89gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-89gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.apply(globalObject))
- * @onlyStrict
- */
-
-function f() { return this;};
-if ((function () {"use strict"; return f.apply(fnGlobalObject());})() !== fnGlobalObject()){
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict + Function.prototype.apply(globalObject)) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this;}; +if ((function () {"use strict"; return f.apply(fnGlobalObject());})() !== fnGlobalObject()){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.js index 814fb7ec7..ea2c0d309 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-8gs.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 ch10/10.4/10.4.3/10.4.3-1-8gs.js
- * @description Strict - checking 'this' from a global scope (FunctionDeclaration includes strict directive prologue)
- * @onlyStrict
- */
-
-function f() {
- "use strict";
- return typeof this;
-}
-if (f() !== "undefined") {
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (FunctionDeclaration + includes strict directive prologue) +flags: [onlyStrict] +---*/ + +function f() { + "use strict"; + return typeof this; +} +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js index 38ca374e7..16981a9af 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-9-s.js @@ -1,19 +1,22 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-9-s.js
- * @description Strict Mode - checking 'this' (FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-function testcase() {
-"use strict";
-var f = function () {
- return typeof this;
-}
-return f() === "undefined";
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (FunctionExpression defined within + strict mode) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +"use strict"; +var f = function () { + return typeof this; +} +return f() === "undefined"; +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js index 0b6a4b3f1..f78c8e013 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-90-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-90-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call())
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.call(); })();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.call()) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(); })(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js index 78a91247f..95ab45a65 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-90gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-90gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call())
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.call();})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.call()) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call();})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js index 2dc4007e9..088fcc162 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-91-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-91-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(null))
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.call(null); })();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.call(null)) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(null); })(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js index c1052a773..44406330f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-91gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-91gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(null))
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.call(null); })())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.call(null)) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call(null); })())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js index 3a04a7b6f..9776ac416 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-92-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-92-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(undefined))
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.call(undefined);})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.call(undefined)) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(undefined);})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js index 4517302f3..5b4625a83 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-92gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-92gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(undefined))
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.call(undefined);})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.call(undefined)) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call(undefined);})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js index e8da599e7..237f072f0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-93-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-93-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(someObject))
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-function f() { return this===o;};
-return (function () {"use strict"; return f.call(o); })();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.call(someObject)) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +function f() { return this===o;}; +return (function () {"use strict"; return f.call(o); })(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js index 44bd495b4..737d29f8c 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-93gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-93gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(someObject))
- * @onlyStrict
- */
-
-var o = {};
-function f() { return this===o;};
-if (! ((function () {"use strict"; return f.call(o); })())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.call(someObject)) +flags: [onlyStrict] +---*/ + +var o = {}; +function f() { return this===o;}; +if (! ((function () {"use strict"; return f.call(o); })())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js index 655ac9e76..79fdac7bf 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-94-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-94-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.call(globalObject))
- * @onlyStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.call(fnGlobalObject());})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.call(globalObject)) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.call(fnGlobalObject());})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js index e752c688e..aa5ca4b11 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-94gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-94gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.call(globalObject))
- * @onlyStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.call(fnGlobalObject());})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.call(globalObject)) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.call(fnGlobalObject());})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js index db48e89d9..4bc3c8cce 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-95-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-95-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind()())
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.bind()(); })();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.bind()()) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind()(); })(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js index 5d5fc09b8..c549c94f3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-95gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-95gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind()())
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.bind()(); })())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.bind()()) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind()(); })())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js index 3c4e652c3..fd2c678a1 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-96-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-96-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(null)())
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.bind(null)(); })();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.bind(null)()) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind(null)(); })(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js index cbfe417c4..c4574087f 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-96gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-96gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(null)())
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.bind(null)(); })())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.bind(null)()) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind(null)(); })())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js index feac73bd6..5677a0e1e 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-97-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-97-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(undefined)())
- * @noStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.bind(undefined)();})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.bind(undefined)()) +flags: [noStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind(undefined)();})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js index 1e79dd96e..913f76fe3 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-97gs.js @@ -1,15 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-97gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(undefined)())
- * @noStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.bind(undefined)(); })())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.bind(undefined)()) +flags: [noStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind(undefined)(); })())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js index 1c07cafc6..0db0b149d 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-98-s.js @@ -1,17 +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 ch10/10.4/10.4.3/10.4.3-1-98-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(someObject)())
- * @onlyStrict
- */
-
-function testcase() {
-var o = {};
-function f() { return this===o;};
-return (function () {"use strict"; return f.bind(o)();})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.bind(someObject)()) +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { +var o = {}; +function f() { return this===o;}; +return (function () {"use strict"; return f.bind(o)();})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js index c72e9dcc6..a773fdaf9 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-98gs.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-98gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(someObject)())
- * @onlyStrict
- */
-
-var o = {};
-function f() { return this===o;};
-if (! ((function () {"use strict"; return f.bind(o)();})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict Function.prototype.bind(someObject)()) +flags: [onlyStrict] +---*/ + +var o = {}; +function f() { return this===o;}; +if (! ((function () {"use strict"; return f.bind(o)();})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js index 47b1dac4d..ad85e9d00 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-99-s.js @@ -1,16 +1,21 @@ -/// 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 ch10/10.4/10.4.3/10.4.3-1-99-s.js
- * @description Strict Mode - checking 'this' (non-strict function declaration called by strict Function.prototype.bind(globalObject)())
- * @onlyStrict
- */
-
-function testcase() {
-function f() { return this===fnGlobalObject();};
-return (function () {"use strict"; return f.bind(fnGlobalObject())();})();
-}
-runTestCase(testcase);
\ No newline at end of file +// 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 - checking 'this' (non-strict function declaration + called by strict Function.prototype.bind(globalObject)()) +flags: [onlyStrict] +includes: + - runTestCase.js + - fnGlobalObject.js +---*/ + +function testcase() { +function f() { return this===fnGlobalObject();}; +return (function () {"use strict"; return f.bind(fnGlobalObject())();})(); +} +runTestCase(testcase); diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js index 5e9730d9f..3275cf2a0 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-99gs.js @@ -1,15 +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 ch10/10.4/10.4.3/10.4.3-1-99gs.js
- * @description Strict - checking 'this' from a global scope (non-strict function declaration called by strict Function.prototype.bind(globalObject)())
- * @onlyStrict
- */
-
-function f() { return this===fnGlobalObject();};
-if (! ((function () {"use strict"; return f.bind(fnGlobalObject())();})())){
- throw "'this' had incorrect value!";
-}
+// 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 - checking 'this' from a global scope (non-strict function + declaration called by strict + Function.prototype.bind(globalObject)()) +flags: [onlyStrict] +includes: [fnGlobalObject.js] +---*/ + +function f() { return this===fnGlobalObject();}; +if (! ((function () {"use strict"; return f.bind(fnGlobalObject())();})())){ + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.js b/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.js index 56c150c89..4ed3fd47a 100644 --- a/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.js +++ b/test/suite/ch10/10.4/10.4.3/10.4.3-1-9gs.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 ch10/10.4/10.4.3/10.4.3-1-9gs.js
- * @description Strict - checking 'this' from a global scope (FunctionExpression defined within strict mode)
- * @onlyStrict
- */
-
-"use strict";
-var f = function () {
- return typeof this;
-}
-if (f() !== "undefined") {
- throw "'this' had incorrect value!";
-}
\ No newline at end of file +// 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 - checking 'this' from a global scope (FunctionExpression + defined within strict mode) +flags: [onlyStrict] +---*/ + +"use strict"; +var f = function () { + return typeof this; +} +if (f() !== "undefined") { + throw "'this' had incorrect value!"; +} diff --git a/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js b/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js index ea2432219..b7b6ff3d7 100644 --- a/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js +++ b/test/suite/ch10/10.4/10.4.3/S10.4.3_A1.js @@ -1,16 +1,15 @@ // Copyright 2011 Google, Inc. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * @path ch10/10.4/10.4.3/S10.4.3_A1.js - * @description When calling a strict anonymous function as a - * function, "this" should be bound to undefined. - * @onlyStrict - */ +/*--- +description: > + When calling a strict anonymous function as a function, "this" + should be bound to undefined. +flags: [onlyStrict] +---*/ "use strict"; var that = (function() { return this; })(); if (that !== undefined) { $ERROR('#1: "this" leaked as: ' + that); } - diff --git a/test/suite/ch10/10.4/S10.4A1.1_T2.js b/test/suite/ch10/10.4/S10.4A1.1_T2.js index 080aad06a..fee20ce5d 100644 --- a/test/suite/ch10/10.4/S10.4A1.1_T2.js +++ b/test/suite/ch10/10.4/S10.4A1.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every function call enters a new execution context - * - * @path ch10/10.4/S10.4A1.1_T2.js - * @description Recursive function call - */ +/*--- +info: Every function call enters a new execution context +description: Recursive function call +---*/ var y; @@ -30,4 +28,3 @@ y = f(0); if(!(y === undefined)){ $ERROR("#1: Recursive function calls shares execution context"); } - diff --git a/test/suite/ch10/10.4/S10.4_A1.1_T1.js b/test/suite/ch10/10.4/S10.4_A1.1_T1.js index 408d50770..737541467 100644 --- a/test/suite/ch10/10.4/S10.4_A1.1_T1.js +++ b/test/suite/ch10/10.4/S10.4_A1.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Every function call enters a new execution context - * - * @path ch10/10.4/S10.4_A1.1_T1.js - * @description Sequence of function calls - */ +/*--- +info: Every function call enters a new execution context +description: Sequence of function calls +---*/ var y; @@ -28,4 +26,3 @@ y = f(); if(!(y === 0)){ $ERROR("#1: Sequenced function calls shares execution context"); } - diff --git a/test/suite/ch10/10.5/10.5-1-s.js b/test/suite/ch10/10.5/10.5-1-s.js index fc841a5e4..b39193cd4 100644 --- a/test/suite/ch10/10.5/10.5-1-s.js +++ b/test/suite/ch10/10.5/10.5-1-s.js @@ -1,24 +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 ch10/10.5/10.5-1-s.js
- * @description Strict Mode - arguments object is immutable
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- (function fun() {
- eval("arguments = 10");
- })(30);
- return false;
- } catch (e) {
- return (e instanceof SyntaxError);
- }
- }
-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 - arguments object is immutable +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + try { + (function fun() { + eval("arguments = 10"); + })(30); + return false; + } catch (e) { + return (e instanceof SyntaxError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.5/10.5-1gs.js b/test/suite/ch10/10.5/10.5-1gs.js index aafbeb333..1729ebb91 100644 --- a/test/suite/ch10/10.5/10.5-1gs.js +++ b/test/suite/ch10/10.5/10.5-1gs.js @@ -1,20 +1,18 @@ -/// 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 ch10/10.5/10.5-1gs.js
- * @description Strict Mode - arguments cannot be assigned to in a strict function
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-
-function f_10_5_1_gs(){
- arguments = 7;
-}
-
+// 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 - arguments cannot be assigned to in a strict function +negative: ^((?!NotEarlyError).)*$ +flags: [onlyStrict] +---*/ + +"use strict"; +throw NotEarlyError; + +function f_10_5_1_gs(){ + arguments = 7; +} diff --git a/test/suite/ch10/10.5/10.5-7-b-1-s.js b/test/suite/ch10/10.5/10.5-7-b-1-s.js index e1855c7c6..f50f0b6c8 100644 --- a/test/suite/ch10/10.5/10.5-7-b-1-s.js +++ b/test/suite/ch10/10.5/10.5-7-b-1-s.js @@ -1,23 +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 ch10/10.5/10.5-7-b-1-s.js
- * @description Strict Mode - arguments object is immutable in eval'ed functions
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("(function _10_5_7_b_1_fun() { arguments = 10;} ());");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-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 - arguments object is immutable in eval'ed functions +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + try { + eval("(function _10_5_7_b_1_fun() { arguments = 10;} ());"); + return false; + } catch (e) { + return e instanceof SyntaxError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.5/10.5-7-b-2-s.js b/test/suite/ch10/10.5/10.5-7-b-2-s.js index 47820009e..6fb0a9b3b 100644 --- a/test/suite/ch10/10.5/10.5-7-b-2-s.js +++ b/test/suite/ch10/10.5/10.5-7-b-2-s.js @@ -1,23 +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 ch10/10.5/10.5-7-b-2-s.js
- * @description Strict Mode - arguments object index assignment is allowed
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- function _10_5_7_b_2_fun() {
- arguments[7] = 12;
- return arguments[7] === 12;
- };
-
- return _10_5_7_b_2_fun(30);
- }
-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 - arguments object index assignment is allowed +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + function _10_5_7_b_2_fun() { + arguments[7] = 12; + return arguments[7] === 12; + }; + + return _10_5_7_b_2_fun(30); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.5/10.5-7-b-3-s.js b/test/suite/ch10/10.5/10.5-7-b-3-s.js index cde0b88c6..26f55d5d7 100644 --- a/test/suite/ch10/10.5/10.5-7-b-3-s.js +++ b/test/suite/ch10/10.5/10.5-7-b-3-s.js @@ -1,23 +1,25 @@ -/// 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 ch10/10.5/10.5-7-b-3-s.js
- * @description Strict Mode - Adding property to the arguments object successful under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- function _10_5_7_b_3_fun() {
- arguments[1] = 12;
- return arguments[0] === 30 && arguments[1] === 12;
- };
-
- return _10_5_7_b_3_fun(30);
- }
-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 - Adding property to the arguments object successful + under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + function _10_5_7_b_3_fun() { + arguments[1] = 12; + return arguments[0] === 30 && arguments[1] === 12; + }; + + return _10_5_7_b_3_fun(30); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.5/10.5-7-b-4-s.js b/test/suite/ch10/10.5/10.5-7-b-4-s.js index c695446b4..2425b0fd9 100644 --- a/test/suite/ch10/10.5/10.5-7-b-4-s.js +++ b/test/suite/ch10/10.5/10.5-7-b-4-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 ch10/10.5/10.5-7-b-4-s.js
- * @description Strict Mode - Deleting property of the arguments object successful under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- function _10_5_7_b_4_fun() {
- var _10_5_7_b_4_1 = arguments[0] === 30 && arguments[1] === 12;
- delete arguments[1];
- var _10_5_7_b_4_2 = arguments[0] === 30 && typeof arguments[1] === "undefined";
- return _10_5_7_b_4_1 && _10_5_7_b_4_2;
- };
- return _10_5_7_b_4_fun(30, 12);
- }
-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 - Deleting property of the arguments object successful + under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + function _10_5_7_b_4_fun() { + var _10_5_7_b_4_1 = arguments[0] === 30 && arguments[1] === 12; + delete arguments[1]; + var _10_5_7_b_4_2 = arguments[0] === 30 && typeof arguments[1] === "undefined"; + return _10_5_7_b_4_1 && _10_5_7_b_4_2; + }; + return _10_5_7_b_4_fun(30, 12); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-10-c-ii-1-s.js b/test/suite/ch10/10.6/10.6-10-c-ii-1-s.js index dcc3c49f9..c83f19a6a 100644 --- a/test/suite/ch10/10.6/10.6-10-c-ii-1-s.js +++ b/test/suite/ch10/10.6/10.6-10-c-ii-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 ch10/10.6/10.6-10-c-ii-1-s.js
- * @description arguments[i] remains same after changing actual parameters in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- function foo(a,b,c)
- {
- 'use strict';
- a = 1; b = 'str'; c = 2.1;
- return (arguments[0] === 10 && arguments[1] === 'sss' && arguments[2] === 1);
- }
- return foo(10, 'sss', 1);
- }
-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: > + arguments[i] remains same after changing actual parameters in + strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + function foo(a,b,c) + { + 'use strict'; + a = 1; b = 'str'; c = 2.1; + return (arguments[0] === 10 && arguments[1] === 'sss' && arguments[2] === 1); + } + return foo(10, 'sss', 1); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-10-c-ii-1.js b/test/suite/ch10/10.6/10.6-10-c-ii-1.js index f0db64ee2..3d9693a45 100644 --- a/test/suite/ch10/10.6/10.6-10-c-ii-1.js +++ b/test/suite/ch10/10.6/10.6-10-c-ii-1.js @@ -1,21 +1,21 @@ -/// 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 ch10/10.6/10.6-10-c-ii-1.js
- * @description arguments[i] change with actual parameters
- */
-
-
-function testcase() {
- function foo(a,b,c)
- {
- a = 1; b = 'str'; c = 2.1;
- if(arguments[0] === 1 && arguments[1] === 'str' && arguments[2] === 2.1)
- return true;
- }
- return foo(10,'sss',1);
- }
-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: arguments[i] change with actual parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + function foo(a,b,c) + { + a = 1; b = 'str'; c = 2.1; + if(arguments[0] === 1 && arguments[1] === 'str' && arguments[2] === 2.1) + return true; + } + return foo(10,'sss',1); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-10-c-ii-2-s.js b/test/suite/ch10/10.6/10.6-10-c-ii-2-s.js index 58143f841..fc6839f21 100644 --- a/test/suite/ch10/10.6/10.6-10-c-ii-2-s.js +++ b/test/suite/ch10/10.6/10.6-10-c-ii-2-s.js @@ -1,23 +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 ch10/10.6/10.6-10-c-ii-2-s.js
- * @description arguments[i] doesn't map to actual parameters in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- function foo(a,b,c)
- {
- 'use strict';
- arguments[0] = 1; arguments[1] = 'str'; arguments[2] = 2.1;
- return 10 === a && 'sss' === b && 1 === c;
- }
- return foo(10,'sss',1);
- }
-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: arguments[i] doesn't map to actual parameters in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo(a,b,c) + { + 'use strict'; + arguments[0] = 1; arguments[1] = 'str'; arguments[2] = 2.1; + return 10 === a && 'sss' === b && 1 === c; + } + return foo(10,'sss',1); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-10-c-ii-2.js b/test/suite/ch10/10.6/10.6-10-c-ii-2.js index 5891dfe3b..bfbcb9b2d 100644 --- a/test/suite/ch10/10.6/10.6-10-c-ii-2.js +++ b/test/suite/ch10/10.6/10.6-10-c-ii-2.js @@ -1,22 +1,22 @@ -/// 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 ch10/10.6/10.6-10-c-ii-2.js
- * @description arguments[i] map to actual parameter
- */
-
-
-function testcase() {
-
- function foo(a,b,c)
- {
- arguments[0] = 1; arguments[1] = 'str'; arguments[2] = 2.1;
- if(1 === a && 'str' === b && 2.1 === c)
- return true;
- }
- return foo(10,'sss',1);
- }
-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: arguments[i] map to actual parameter +includes: [runTestCase.js] +---*/ + +function testcase() { + + function foo(a,b,c) + { + arguments[0] = 1; arguments[1] = 'str'; arguments[2] = 2.1; + if(1 === a && 'str' === b && 2.1 === c) + return true; + } + return foo(10,'sss',1); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-11-b-1.js b/test/suite/ch10/10.6/10.6-11-b-1.js index bcf937d63..7a7a486ce 100644 --- a/test/suite/ch10/10.6/10.6-11-b-1.js +++ b/test/suite/ch10/10.6/10.6-11-b-1.js @@ -1,54 +1,57 @@ -/// 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 ch10/10.6/10.6-11-b-1.js
- * @description Arguments Object has index property '0' as its own property, it shoulde be writable, enumerable, configurable and does not invoke the setter defined on Object.prototype[0] (Step 11.b)
- */
-
-
-function testcase() {
- try {
- var data = "data";
- var getFunc = function () {
- return data;
- };
-
- var setFunc = function (value) {
- data = value;
- };
-
- Object.defineProperty(Object.prototype, "0", {
- get: getFunc,
- set: setFunc,
- configurable: true
- });
-
- var argObj = (function () { return arguments })(1);
-
- var verifyValue = false;
- verifyValue = (argObj[0] === 1);
-
- var verifyEnumerable = false;
- for (var p in argObj) {
- if (p === "0" && argObj.hasOwnProperty("0")) {
- verifyEnumerable = true;
- }
- }
-
- var verifyWritable = false;
- argObj[0] = 1001;
- verifyWritable = (argObj[0] === 1001);
-
- var verifyConfigurable = false;
- delete argObj[0];
- verifyConfigurable = argObj.hasOwnProperty("0");
-
- return verifyValue && verifyWritable && verifyEnumerable && !verifyConfigurable && data === "data";
- } finally {
- delete Object.prototype[0];
- }
- }
-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: > + Arguments Object has index property '0' as its own property, it + shoulde be writable, enumerable, configurable and does not invoke + the setter defined on Object.prototype[0] (Step 11.b) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var data = "data"; + var getFunc = function () { + return data; + }; + + var setFunc = function (value) { + data = value; + }; + + Object.defineProperty(Object.prototype, "0", { + get: getFunc, + set: setFunc, + configurable: true + }); + + var argObj = (function () { return arguments })(1); + + var verifyValue = false; + verifyValue = (argObj[0] === 1); + + var verifyEnumerable = false; + for (var p in argObj) { + if (p === "0" && argObj.hasOwnProperty("0")) { + verifyEnumerable = true; + } + } + + var verifyWritable = false; + argObj[0] = 1001; + verifyWritable = (argObj[0] === 1001); + + var verifyConfigurable = false; + delete argObj[0]; + verifyConfigurable = argObj.hasOwnProperty("0"); + + return verifyValue && verifyWritable && verifyEnumerable && !verifyConfigurable && data === "data"; + } finally { + delete Object.prototype[0]; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-12-1.js b/test/suite/ch10/10.6/10.6-12-1.js index 12746eb1e..7624258ca 100644 --- a/test/suite/ch10/10.6/10.6-12-1.js +++ b/test/suite/ch10/10.6/10.6-12-1.js @@ -1,21 +1,21 @@ -/// 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 ch10/10.6/10.6-12-1.js
- * @description Accessing callee property of Arguments object is allowed
- */
-
-
-function testcase() {
- try
- {
- arguments.callee;
- return true;
- }
- catch (e) {
- }
- }
-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: Accessing callee property of Arguments object is allowed +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + arguments.callee; + return true; + } + catch (e) { + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-12-2.js b/test/suite/ch10/10.6/10.6-12-2.js index 11a1793f4..a38eb6e3a 100644 --- a/test/suite/ch10/10.6/10.6-12-2.js +++ b/test/suite/ch10/10.6/10.6-12-2.js @@ -1,22 +1,22 @@ -/// 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 ch10/10.6/10.6-12-2.js
- * @description arguments.callee has correct attributes
- */
-
-
-function testcase() {
-
- var desc = Object.getOwnPropertyDescriptor(arguments,"callee");
- if(desc.configurable === true &&
- desc.enumerable === false &&
- desc.writable === true &&
- desc.hasOwnProperty('get') == false &&
- desc.hasOwnProperty('put') == false)
- 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: arguments.callee has correct attributes +includes: [runTestCase.js] +---*/ + +function testcase() { + + var desc = Object.getOwnPropertyDescriptor(arguments,"callee"); + if(desc.configurable === true && + desc.enumerable === false && + desc.writable === true && + desc.hasOwnProperty('get') == false && + desc.hasOwnProperty('put') == false) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-1.js b/test/suite/ch10/10.6/10.6-13-1.js index d871a9ccb..5370e2866 100644 --- a/test/suite/ch10/10.6/10.6-13-1.js +++ b/test/suite/ch10/10.6/10.6-13-1.js @@ -1,21 +1,21 @@ -/// 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 ch10/10.6/10.6-13-1.js
- * @description Accessing caller property of Arguments object is allowed
- */
-
-
-function testcase() {
- try
- {
- arguments.caller;
- return true;
- }
- catch (e) {
- }
- }
-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: Accessing caller property of Arguments object is allowed +includes: [runTestCase.js] +---*/ + +function testcase() { + try + { + arguments.caller; + return true; + } + catch (e) { + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-a-1.js b/test/suite/ch10/10.6/10.6-13-a-1.js index a7b3f2ee6..889301ec5 100644 --- a/test/suite/ch10/10.6/10.6-13-a-1.js +++ b/test/suite/ch10/10.6/10.6-13-a-1.js @@ -1,45 +1,47 @@ -/// 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 ch10/10.6/10.6-13-a-1.js
- * @description In non-strict mode, arguments object should have its own 'callee' property defined (Step 13.a)
- */
-
-
-function testcase() {
- try {
- Object.defineProperty(Object.prototype, "callee", {
- value: 1,
- writable: false,
- configurable: true
- });
-
- var argObj = (function () { return arguments })();
-
- var verifyValue = false;
- verifyValue = typeof argObj.callee === "function";
-
- var verifyWritable = false;
- argObj.callee = 1001;
- verifyWritable = (argObj.callee === 1001);
-
- var verifyEnumerable = false;
- for (var p in argObj) {
- if (p === "callee" && argObj.hasOwnProperty("callee")) {
- verifyEnumerable = true;
- }
- }
-
- var verifyConfigurable = false;
- delete argObj.callee;
- verifyConfigurable = argObj.hasOwnProperty("callee");
-
- return verifyValue && verifyWritable && !verifyEnumerable && !verifyConfigurable;
- } finally {
- delete Object.prototype.callee;
- }
- }
-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: > + In non-strict mode, arguments object should have its own 'callee' + property defined (Step 13.a) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + Object.defineProperty(Object.prototype, "callee", { + value: 1, + writable: false, + configurable: true + }); + + var argObj = (function () { return arguments })(); + + var verifyValue = false; + verifyValue = typeof argObj.callee === "function"; + + var verifyWritable = false; + argObj.callee = 1001; + verifyWritable = (argObj.callee === 1001); + + var verifyEnumerable = false; + for (var p in argObj) { + if (p === "callee" && argObj.hasOwnProperty("callee")) { + verifyEnumerable = true; + } + } + + var verifyConfigurable = false; + delete argObj.callee; + verifyConfigurable = argObj.hasOwnProperty("callee"); + + return verifyValue && verifyWritable && !verifyEnumerable && !verifyConfigurable; + } finally { + delete Object.prototype.callee; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-a-2.js b/test/suite/ch10/10.6/10.6-13-a-2.js index b68171258..7cd8c213f 100644 --- a/test/suite/ch10/10.6/10.6-13-a-2.js +++ b/test/suite/ch10/10.6/10.6-13-a-2.js @@ -1,35 +1,35 @@ -/// 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 ch10/10.6/10.6-13-a-2.js
- * @description A direct call to arguments.callee.caller should work
- */
-
-
-function testcase() {
- var called = false;
-
- function test1(flag) {
- if (flag!==true) {
- test2();
- } else {
- called = true;
- }
- }
-
- function test2() {
- if(arguments.callee.caller===undefined) {
- called=true; // Extension not supported - fake it
- } else {
- arguments.callee.caller(true);
- }
- }
-
- test1();
- return called;
-}
-
-runTestCase(testcase);
\ No newline at end of file +// 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: A direct call to arguments.callee.caller should work +includes: [runTestCase.js] +---*/ + +function testcase() { + var called = false; + + function test1(flag) { + if (flag!==true) { + test2(); + } else { + called = true; + } + } + + function test2() { + if(arguments.callee.caller===undefined) { + called=true; // Extension not supported - fake it + } else { + arguments.callee.caller(true); + } + } + + test1(); + return called; +} + +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-a-3.js b/test/suite/ch10/10.6/10.6-13-a-3.js index ddd03a68c..d77a15b8d 100644 --- a/test/suite/ch10/10.6/10.6-13-a-3.js +++ b/test/suite/ch10/10.6/10.6-13-a-3.js @@ -1,36 +1,36 @@ -/// 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 ch10/10.6/10.6-13-a-3.js
- * @description An indirect call to arguments.callee.caller should work
- */
-
-
-function testcase() {
- var called = false;
-
- function test1(flag) {
- if (flag!==true) {
- test2();
- } else {
- called = true;
- }
- }
-
- function test2() {
- if (arguments.callee.caller===undefined) {
- called = true; //Extension not supported - fake it
- } else {
- var explicit = arguments.callee.caller;
- explicit(true);
- }
- }
-
- test1();
- return called;
-}
-
-runTestCase(testcase);
\ No newline at end of file +// 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: An indirect call to arguments.callee.caller should work +includes: [runTestCase.js] +---*/ + +function testcase() { + var called = false; + + function test1(flag) { + if (flag!==true) { + test2(); + } else { + called = true; + } + } + + function test2() { + if (arguments.callee.caller===undefined) { + called = true; //Extension not supported - fake it + } else { + var explicit = arguments.callee.caller; + explicit(true); + } + } + + test1(); + return called; +} + +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-b-1-s.js b/test/suite/ch10/10.6/10.6-13-b-1-s.js index d44b475af..2e7044d72 100644 --- a/test/suite/ch10/10.6/10.6-13-b-1-s.js +++ b/test/suite/ch10/10.6/10.6-13-b-1-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 ch10/10.6/10.6-13-b-1-s.js
- * @description Accessing caller property of Arguments object throws TypeError in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
- try
- {
- arguments.caller;
- }
- catch (e) {
- if(e instanceof TypeError)
- 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: > + Accessing caller property of Arguments object throws TypeError in + strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + try + { + arguments.caller; + } + catch (e) { + if(e instanceof TypeError) + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-b-2-s.js b/test/suite/ch10/10.6/10.6-13-b-2-s.js index 0f1b2b764..2c559d445 100644 --- a/test/suite/ch10/10.6/10.6-13-b-2-s.js +++ b/test/suite/ch10/10.6/10.6-13-b-2-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 ch10/10.6/10.6-13-b-2-s.js
- * @description arguments.caller exists in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- 'use strict';
- var desc = Object.getOwnPropertyDescriptor(arguments,"caller");
- return desc!== undefined;
- }
-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: arguments.caller exists in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + 'use strict'; + var desc = Object.getOwnPropertyDescriptor(arguments,"caller"); + return desc!== undefined; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-b-3-s.js b/test/suite/ch10/10.6/10.6-13-b-3-s.js index d85e084f1..34b901b31 100644 --- a/test/suite/ch10/10.6/10.6-13-b-3-s.js +++ b/test/suite/ch10/10.6/10.6-13-b-3-s.js @@ -1,26 +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 ch10/10.6/10.6-13-b-3-s.js
- * @description arguments.caller is non-configurable in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- 'use strict';
- var desc = Object.getOwnPropertyDescriptor(arguments,"caller");
-
- return (desc.configurable === false &&
- desc.enumerable === false &&
- desc.hasOwnProperty('value') == false &&
- desc.hasOwnProperty('writable') == false &&
- desc.hasOwnProperty('get') == true &&
- desc.hasOwnProperty('set') == 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: arguments.caller is non-configurable in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + 'use strict'; + var desc = Object.getOwnPropertyDescriptor(arguments,"caller"); + + return (desc.configurable === false && + desc.enumerable === false && + desc.hasOwnProperty('value') == false && + desc.hasOwnProperty('writable') == false && + desc.hasOwnProperty('get') == true && + desc.hasOwnProperty('set') == true); + + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-c-1-s.js b/test/suite/ch10/10.6/10.6-13-c-1-s.js index f17a9b37b..e4979eb9a 100644 --- a/test/suite/ch10/10.6/10.6-13-c-1-s.js +++ b/test/suite/ch10/10.6/10.6-13-c-1-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 ch10/10.6/10.6-13-c-1-s.js
- * @description Accessing callee property of Arguments object throws TypeError in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- 'use strict';
- try
- {
- arguments.callee;
- 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: > + Accessing callee property of Arguments object throws TypeError in + strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + 'use strict'; + try + { + arguments.callee; + return false; + } + catch (e) { + return (e instanceof TypeError); + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-c-2-s.js b/test/suite/ch10/10.6/10.6-13-c-2-s.js index e08e77003..0440e2788 100644 --- a/test/suite/ch10/10.6/10.6-13-c-2-s.js +++ b/test/suite/ch10/10.6/10.6-13-c-2-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 ch10/10.6/10.6-13-c-2-s.js
- * @description arguments.callee is exists in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- 'use strict';
- var desc = Object.getOwnPropertyDescriptor(arguments,"callee");
- return desc !== undefined;
- }
-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: arguments.callee is exists in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + 'use strict'; + var desc = Object.getOwnPropertyDescriptor(arguments,"callee"); + return desc !== undefined; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-13-c-3-s.js b/test/suite/ch10/10.6/10.6-13-c-3-s.js index 8122932bd..821cdc0e4 100644 --- a/test/suite/ch10/10.6/10.6-13-c-3-s.js +++ b/test/suite/ch10/10.6/10.6-13-c-3-s.js @@ -1,24 +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 ch10/10.6/10.6-13-c-3-s.js
- * @description arguments.callee is non-configurable in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- 'use strict';
- var desc = Object.getOwnPropertyDescriptor(arguments,"callee");
- return (desc.configurable === false &&
- desc.enumerable === false &&
- desc.hasOwnProperty('value') == false &&
- desc.hasOwnProperty('writable') == false &&
- desc.hasOwnProperty('get') == true &&
- desc.hasOwnProperty('set') == 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: arguments.callee is non-configurable in strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + + 'use strict'; + var desc = Object.getOwnPropertyDescriptor(arguments,"callee"); + return (desc.configurable === false && + desc.enumerable === false && + desc.hasOwnProperty('value') == false && + desc.hasOwnProperty('writable') == false && + desc.hasOwnProperty('get') == true && + desc.hasOwnProperty('set') == true); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-14-1-s.js b/test/suite/ch10/10.6/10.6-14-1-s.js index aebc6fa1c..112a735b1 100644 --- a/test/suite/ch10/10.6/10.6-14-1-s.js +++ b/test/suite/ch10/10.6/10.6-14-1-s.js @@ -1,20 +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 ch10/10.6/10.6-14-1-s.js
- * @description Strict Mode - 'callee' exists and 'caller' exists under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var argObj = function () {
- return arguments;
- } ();
- return argObj.hasOwnProperty("callee") && argObj.hasOwnProperty("caller");
- }
-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 - 'callee' exists and 'caller' exists under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + var argObj = function () { + return arguments; + } (); + return argObj.hasOwnProperty("callee") && argObj.hasOwnProperty("caller"); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-14-b-1-s.js b/test/suite/ch10/10.6/10.6-14-b-1-s.js index 51cbfff4d..3cdc79791 100644 --- a/test/suite/ch10/10.6/10.6-14-b-1-s.js +++ b/test/suite/ch10/10.6/10.6-14-b-1-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 ch10/10.6/10.6-14-b-1-s.js
- * @description Strict Mode - [[Enumerable]] attribute value in 'caller' is false under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var argObj = function () {
- return arguments;
- } ();
-
- var verifyEnumerable = false;
- for (var _10_6_14_b_1 in argObj) {
- if (argObj.hasOwnProperty(_10_6_14_b_1) && _10_6_14_b_1 === "caller") {
- verifyEnumerable = true;
- }
- }
- return !verifyEnumerable && argObj.hasOwnProperty("caller");
- }
-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 - [[Enumerable]] attribute value in 'caller' is false + under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + var argObj = function () { + return arguments; + } (); + + var verifyEnumerable = false; + for (var _10_6_14_b_1 in argObj) { + if (argObj.hasOwnProperty(_10_6_14_b_1) && _10_6_14_b_1 === "caller") { + verifyEnumerable = true; + } + } + return !verifyEnumerable && argObj.hasOwnProperty("caller"); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-14-b-4-s.js b/test/suite/ch10/10.6/10.6-14-b-4-s.js index 748c630a9..e79a7c5d0 100644 --- a/test/suite/ch10/10.6/10.6-14-b-4-s.js +++ b/test/suite/ch10/10.6/10.6-14-b-4-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 ch10/10.6/10.6-14-b-4-s.js
- * @description Strict Mode - TypeError is thrown when accessing the [[Set]] attribute in 'caller' under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var argObj = function () {
- return arguments;
- } ();
-
- try {
- argObj.caller = {};
- 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 when accessing the [[Set]] + attribute in 'caller' under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + var argObj = function () { + return arguments; + } (); + + try { + argObj.caller = {}; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-14-c-1-s.js b/test/suite/ch10/10.6/10.6-14-c-1-s.js index cade0a537..782dc9df6 100644 --- a/test/suite/ch10/10.6/10.6-14-c-1-s.js +++ b/test/suite/ch10/10.6/10.6-14-c-1-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 ch10/10.6/10.6-14-c-1-s.js
- * @description Strict Mode - [[Enumerable]] attribute value in 'callee' is false under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var argObj = function () {
- return arguments;
- } ();
-
- var verifyEnumerable = false;
- for (var _10_6_14_c_1 in argObj) {
- if (argObj.hasOwnProperty(_10_6_14_c_1) && _10_6_14_c_1 === "callee") {
- verifyEnumerable = true;
- }
- }
- return !verifyEnumerable && argObj.hasOwnProperty("callee");
- }
-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 - [[Enumerable]] attribute value in 'callee' is false + under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + var argObj = function () { + return arguments; + } (); + + var verifyEnumerable = false; + for (var _10_6_14_c_1 in argObj) { + if (argObj.hasOwnProperty(_10_6_14_c_1) && _10_6_14_c_1 === "callee") { + verifyEnumerable = true; + } + } + return !verifyEnumerable && argObj.hasOwnProperty("callee"); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-14-c-4-s.js b/test/suite/ch10/10.6/10.6-14-c-4-s.js index 1238570c4..1866c2416 100644 --- a/test/suite/ch10/10.6/10.6-14-c-4-s.js +++ b/test/suite/ch10/10.6/10.6-14-c-4-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 ch10/10.6/10.6-14-c-4-s.js
- * @description Strict Mode - TypeError is thrown when accessing the [[Set]] attribute in 'callee' under strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var argObj = function () {
- return arguments;
- } ();
-
- try {
- argObj.callee = {};
- 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 when accessing the [[Set]] + attribute in 'callee' under strict mode +flags: [onlyStrict] +includes: [runTestCase.js] +---*/ + +function testcase() { + "use strict"; + + var argObj = function () { + return arguments; + } (); + + try { + argObj.callee = {}; + return false; + } catch (e) { + return e instanceof TypeError; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-1gs.js b/test/suite/ch10/10.6/10.6-1gs.js index f77fd3c57..3e20dae85 100644 --- a/test/suite/ch10/10.6/10.6-1gs.js +++ b/test/suite/ch10/10.6/10.6-1gs.js @@ -1,17 +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 ch10/10.6/10.6-1gs.js
- * @description Strict Mode - arguments.callee cannot be accessed in a strict function, but does not throw an early error
- * @onlyStrict
- */
-
-"use strict";
-function f_10_6_1_gs(){
- return arguments.callee;
-}
-
+// 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 - arguments.callee cannot be accessed in a strict + function, but does not throw an early error +flags: [onlyStrict] +---*/ + +"use strict"; +function f_10_6_1_gs(){ + return arguments.callee; +} diff --git a/test/suite/ch10/10.6/10.6-2gs.js b/test/suite/ch10/10.6/10.6-2gs.js index e13cc02f5..45069b091 100644 --- a/test/suite/ch10/10.6/10.6-2gs.js +++ b/test/suite/ch10/10.6/10.6-2gs.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 ch10/10.6/10.6-2gs.js
- * @description Strict Mode - arguments.callee cannot be accessed in a strict function
- * @onlyStrict
- * @negative .
- */
-
-"use strict";
-function f_10_6_1_gs(){
- return arguments.callee;
-}
-f_10_6_1_gs();
-
+// 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 - arguments.callee cannot be accessed in a strict + function +negative: . +flags: [onlyStrict] +---*/ + +"use strict"; +function f_10_6_1_gs(){ + return arguments.callee; +} +f_10_6_1_gs(); diff --git a/test/suite/ch10/10.6/10.6-5-1.js b/test/suite/ch10/10.6/10.6-5-1.js index f058239fe..8058ac6de 100644 --- a/test/suite/ch10/10.6/10.6-5-1.js +++ b/test/suite/ch10/10.6/10.6-5-1.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.6/10.6-5-1.js
- * @description [[Prototype]] property of Arguments is set to Object prototype object
- */
-
-
-function testcase() {
- if(Object.getPrototypeOf(arguments) === Object.getPrototypeOf({}))
- 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: > + [[Prototype]] property of Arguments is set to Object prototype + object +includes: [runTestCase.js] +---*/ + +function testcase() { + if(Object.getPrototypeOf(arguments) === Object.getPrototypeOf({})) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-6-1.js b/test/suite/ch10/10.6/10.6-6-1.js index d0ec15e27..ca57db6c6 100644 --- a/test/suite/ch10/10.6/10.6-6-1.js +++ b/test/suite/ch10/10.6/10.6-6-1.js @@ -1,17 +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 ch10/10.6/10.6-6-1.js
- * @description 'length property of arguments object exists
- */
-
-
-function testcase() {
-
- var desc = Object.getOwnPropertyDescriptor(arguments,"length");
- return desc !== undefined
- }
-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: "'length property of arguments object exists" +includes: [runTestCase.js] +---*/ + +function testcase() { + + var desc = Object.getOwnPropertyDescriptor(arguments,"length"); + return desc !== undefined + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-6-2.js b/test/suite/ch10/10.6/10.6-6-2.js index afad35fd0..8a8cf5912 100644 --- a/test/suite/ch10/10.6/10.6-6-2.js +++ b/test/suite/ch10/10.6/10.6-6-2.js @@ -1,20 +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 ch10/10.6/10.6-6-2.js
- * @description 'length' property of arguments object has correct attributes
- */
-
-
-function testcase() {
-
- var desc = Object.getOwnPropertyDescriptor(arguments,"length");
- if(desc.configurable === true &&
- desc.enumerable === false &&
- desc.writable === true )
- 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: "'length' property of arguments object has correct attributes" +includes: [runTestCase.js] +---*/ + +function testcase() { + + var desc = Object.getOwnPropertyDescriptor(arguments,"length"); + if(desc.configurable === true && + desc.enumerable === false && + desc.writable === true ) + return true; + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-6-3.js b/test/suite/ch10/10.6/10.6-6-3.js index e7838e8a4..5e1d49128 100644 --- a/test/suite/ch10/10.6/10.6-6-3.js +++ b/test/suite/ch10/10.6/10.6-6-3.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.6/10.6-6-3.js
- * @description 'length' property of arguments object for 0 argument function exists
- */
-
-
-function testcase() {
- var arguments= undefined;
- return (function () {return arguments.length !== undefined})();
- }
-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: > + 'length' property of arguments object for 0 argument function + exists +includes: [runTestCase.js] +---*/ + +function testcase() { + var arguments= undefined; + return (function () {return arguments.length !== undefined})(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-6-4.js b/test/suite/ch10/10.6/10.6-6-4.js index 6a3a77b23..5bad13376 100644 --- a/test/suite/ch10/10.6/10.6-6-4.js +++ b/test/suite/ch10/10.6/10.6-6-4.js @@ -1,16 +1,18 @@ -/// 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 ch10/10.6/10.6-6-4.js
- * @description 'length' property of arguments object for 0 argument function call is 0 even with formal parameters
- */
-
-
-function testcase() {
- var arguments= undefined;
- return (function (a,b,c) {return arguments.length === 0})();
- }
-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: > + 'length' property of arguments object for 0 argument function call + is 0 even with formal parameters +includes: [runTestCase.js] +---*/ + +function testcase() { + var arguments= undefined; + return (function (a,b,c) {return arguments.length === 0})(); + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/10.6-7-1.js b/test/suite/ch10/10.6/10.6-7-1.js index 30fd4f373..565591be5 100644 --- a/test/suite/ch10/10.6/10.6-7-1.js +++ b/test/suite/ch10/10.6/10.6-7-1.js @@ -1,53 +1,55 @@ -/// 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 ch10/10.6/10.6-7-1.js
- * @description Arguments Object has length as its own property and does not invoke the setter defined on Object.prototype.length (Step 7)
- */
-
-
-function testcase() {
- try {
- var data = "data";
- var getFunc = function () {
- return 12;
- };
-
- var setFunc = function (value) {
- data = value;
- };
-
- Object.defineProperty(Object.prototype, "length", {
- get: getFunc,
- set: setFunc,
- configurable: true
- });
-
- var verifyValue = false;
- var argObj = (function () { return arguments })();
- verifyValue = (argObj.length === 0);
-
- var verifyWritable = false;
- argObj.length = 1001;
- verifyWritable = (argObj.length === 1001);
-
- var verifyEnumerable = false;
- for (var p in argObj) {
- if (p === "length") {
- verifyEnumerable = true;
- }
- }
-
- var verifyConfigurable = false;
- delete argObj.length;
- verifyConfigurable = argObj.hasOwnProperty("length");
-
- return verifyValue && verifyWritable && !verifyEnumerable && !verifyConfigurable && data === "data";
- } finally {
- delete Object.prototype.length;
- }
- }
-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: > + Arguments Object has length as its own property and does not + invoke the setter defined on Object.prototype.length (Step 7) +includes: [runTestCase.js] +---*/ + +function testcase() { + try { + var data = "data"; + var getFunc = function () { + return 12; + }; + + var setFunc = function (value) { + data = value; + }; + + Object.defineProperty(Object.prototype, "length", { + get: getFunc, + set: setFunc, + configurable: true + }); + + var verifyValue = false; + var argObj = (function () { return arguments })(); + verifyValue = (argObj.length === 0); + + var verifyWritable = false; + argObj.length = 1001; + verifyWritable = (argObj.length === 1001); + + var verifyEnumerable = false; + for (var p in argObj) { + if (p === "length") { + verifyEnumerable = true; + } + } + + var verifyConfigurable = false; + delete argObj.length; + verifyConfigurable = argObj.hasOwnProperty("length"); + + return verifyValue && verifyWritable && !verifyEnumerable && !verifyConfigurable && data === "data"; + } finally { + delete Object.prototype.length; + } + } +runTestCase(testcase); diff --git a/test/suite/ch10/10.6/S10.6_A1.js b/test/suite/ch10/10.6/S10.6_A1.js index 89df9c4dd..187c999a7 100644 --- a/test/suite/ch10/10.6/S10.6_A1.js +++ b/test/suite/ch10/10.6/S10.6_A1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * When control enters an execution context for function code, - * an arguments object is created and initialised - * - * @path ch10/10.6/S10.6_A1.js - * @description Executing function which uses arguments object - */ +/*--- +info: > + When control enters an execution context for function code, + an arguments object is created and initialised +description: Executing function which uses arguments object +---*/ //CHECK#1 function f1(){ @@ -32,4 +31,3 @@ try{ catch(e){ $ERROR("#2: arguments doesn't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A2.js b/test/suite/ch10/10.6/S10.6_A2.js index 18698be00..688cee6b7 100644 --- a/test/suite/ch10/10.6/S10.6_A2.js +++ b/test/suite/ch10/10.6/S10.6_A2.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of the internal [[Prototype]] property of the - * created arguments object is the original Object prototype object, the one - * that is the initial value of Object.prototype - * - * @path ch10/10.6/S10.6_A2.js - * @description Checking arguments.constructor.prototype===Object.prototype - */ +/*--- +info: > + The value of the internal [[Prototype]] property of the + created arguments object is the original Object prototype object, the one + that is the initial value of Object.prototype +description: Checking arguments.constructor.prototype===Object.prototype +---*/ //CHECK#1 function f1(){ @@ -33,4 +32,3 @@ try{ catch(e){ $ERROR("#2: arguments doesn't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A3_T1.js b/test/suite/ch10/10.6/S10.6_A3_T1.js index 234d6ad1a..a2cad7cb1 100644 --- a/test/suite/ch10/10.6/S10.6_A3_T1.js +++ b/test/suite/ch10/10.6/S10.6_A3_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name callee with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A3_T1.js - * @description Checking existence of arguments.callee property - */ +/*--- +info: > + A property is created with name callee with property + attributes { DontEnum } and no others +description: Checking existence of arguments.callee property +---*/ //CHECK#1 function f1(){ @@ -32,4 +31,3 @@ try{ catch(e){ $ERROR("#2: arguments object doesn't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A3_T2.js b/test/suite/ch10/10.6/S10.6_A3_T2.js index 327e5cf36..9cb310265 100644 --- a/test/suite/ch10/10.6/S10.6_A3_T2.js +++ b/test/suite/ch10/10.6/S10.6_A3_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name callee with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A3_T2.js - * @description Checking if enumerating the arguments.callee property fails - */ +/*--- +info: > + A property is created with name callee with property + attributes { DontEnum } and no others +description: Checking if enumerating the arguments.callee property fails +---*/ //CHECK#1 function f1(){ @@ -46,4 +45,3 @@ try{ catch(e){ $ERROR("#2: arguments object don't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A3_T3.js b/test/suite/ch10/10.6/S10.6_A3_T3.js index 4b2626570..6fdd603c8 100644 --- a/test/suite/ch10/10.6/S10.6_A3_T3.js +++ b/test/suite/ch10/10.6/S10.6_A3_T3.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name callee with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A3_T3.js - * @description Checking if deleting arguments.callee property fails - * @noStrict - */ +/*--- +info: > + A property is created with name callee with property + attributes { DontEnum } and no others +description: Checking if deleting arguments.callee property fails +flags: [noStrict] +---*/ //CHECK#1 function f1(){ @@ -37,4 +36,3 @@ try{ catch(e){ $ERROR("#2: arguments object don't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A3_T4.js b/test/suite/ch10/10.6/S10.6_A3_T4.js index c83983507..5a94feae2 100644 --- a/test/suite/ch10/10.6/S10.6_A3_T4.js +++ b/test/suite/ch10/10.6/S10.6_A3_T4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name callee with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A3_T4.js - * @description Overriding arguments.callee property - * @noStrict - */ +/*--- +info: > + A property is created with name callee with property + attributes { DontEnum } and no others +description: Overriding arguments.callee property +flags: [noStrict] +---*/ var str = "something different"; //CHECK#1 @@ -39,4 +38,3 @@ try{ catch(e){ $ERROR("#2: arguments object don't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A4.js b/test/suite/ch10/10.6/S10.6_A4.js index b49902a45..15c96f9f1 100644 --- a/test/suite/ch10/10.6/S10.6_A4.js +++ b/test/suite/ch10/10.6/S10.6_A4.js @@ -1,14 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The initial value of the created property callee is the - * Function object being executed - * - * @path ch10/10.6/S10.6_A4.js - * @description Checking that arguments.callee === function object - * @noStrict - */ +/*--- +info: > + The initial value of the created property callee is the + Function object being executed +description: Checking that arguments.callee === function object +flags: [noStrict] +---*/ //CHECK#1 function f1(){ @@ -35,4 +34,3 @@ try{ catch(e){ $ERROR("#1: arguments object doesn't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A5_T1.js b/test/suite/ch10/10.6/S10.6_A5_T1.js index a76e58d47..05f412827 100644 --- a/test/suite/ch10/10.6/S10.6_A5_T1.js +++ b/test/suite/ch10/10.6/S10.6_A5_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name length with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A5_T1.js - * @description Checking existence of arguments.length property - */ +/*--- +info: > + A property is created with name length with property + attributes { DontEnum } and no others +description: Checking existence of arguments.length property +---*/ //CHECK#1 function f1(){ @@ -32,4 +31,3 @@ try{ catch(e){ $ERROR("#2: arguments object doesn't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A5_T2.js b/test/suite/ch10/10.6/S10.6_A5_T2.js index a0f4df7a9..cc0fdb4d5 100644 --- a/test/suite/ch10/10.6/S10.6_A5_T2.js +++ b/test/suite/ch10/10.6/S10.6_A5_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name length with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A5_T2.js - * @description Checking if enumerating the arguments.length property fails - */ +/*--- +info: > + A property is created with name length with property + attributes { DontEnum } and no others +description: Checking if enumerating the arguments.length property fails +---*/ //CHECK#1 function f1(){ @@ -46,4 +45,3 @@ try{ catch(e){ $ERROR("#2: arguments object don't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A5_T3.js b/test/suite/ch10/10.6/S10.6_A5_T3.js index c8187fac8..ded4c6b39 100644 --- a/test/suite/ch10/10.6/S10.6_A5_T3.js +++ b/test/suite/ch10/10.6/S10.6_A5_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name length with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A5_T3.js - * @description Checking if deleting arguments.length property fails - */ +/*--- +info: > + A property is created with name length with property + attributes { DontEnum } and no others +description: Checking if deleting arguments.length property fails +---*/ //CHECK#1 function f1(){ @@ -36,4 +35,3 @@ try{ catch(e){ $ERROR("#2: arguments object don't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A5_T4.js b/test/suite/ch10/10.6/S10.6_A5_T4.js index 7178bf424..a32d5ea6d 100644 --- a/test/suite/ch10/10.6/S10.6_A5_T4.js +++ b/test/suite/ch10/10.6/S10.6_A5_T4.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * A property is created with name length with property - * attributes { DontEnum } and no others - * - * @path ch10/10.6/S10.6_A5_T4.js - * @description Overriding arguments.length property - */ +/*--- +info: > + A property is created with name length with property + attributes { DontEnum } and no others +description: Overriding arguments.length property +---*/ var str = "something different"; //CHECK#1 @@ -38,4 +37,3 @@ try{ catch(e){ $ERROR("#2: arguments object don't exists"); } - diff --git a/test/suite/ch10/10.6/S10.6_A6.js b/test/suite/ch10/10.6/S10.6_A6.js index 3f1d0d1c1..1de852f01 100644 --- a/test/suite/ch10/10.6/S10.6_A6.js +++ b/test/suite/ch10/10.6/S10.6_A6.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The initial value of the created property length is the number - * of actual parameter values supplied by the caller - * - * @path ch10/10.6/S10.6_A6.js - * @description Create function, that returned arguments.length - */ +/*--- +info: > + The initial value of the created property length is the number + of actual parameter values supplied by the caller +description: Create function, that returned arguments.length +---*/ function f1(){ return arguments.length; @@ -64,4 +63,3 @@ if(!(f2(0, 1, 2) === 3)){ if(!(f2(0, 1, 2, 3) === 4)){ $ERROR('#10: argument.length === 4'); } - diff --git a/test/suite/ch10/10.6/S10.6_A7.js b/test/suite/ch10/10.6/S10.6_A7.js index f013ba013..09e8da177 100644 --- a/test/suite/ch10/10.6/S10.6_A7.js +++ b/test/suite/ch10/10.6/S10.6_A7.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Get arguments of function - * - * @path ch10/10.6/S10.6_A7.js - * @description Use property arguments - */ +/*--- +info: Get arguments of function +description: Use property arguments +---*/ function f1() { return arguments; @@ -17,4 +15,3 @@ for(var i = 1; i < 5; i++){ if (f1(1,2,3,4,5)[i] !== (i+1)) $ERROR("#"+i+": Returning function's arguments work wrong, f1(1,2,3,4,5)["+i+"] !== "+(i+1)); } - |