aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch13/13.1
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch13/13.1')
-rw-r--r--test/suite/ch13/13.1/13.1-1-1.js44
-rw-r--r--test/suite/ch13/13.1/13.1-1-2.js44
-rw-r--r--test/suite/ch13/13.1/13.1-1-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-10-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-11-s.js46
-rw-r--r--test/suite/ch13/13.1/13.1-12-s.js50
-rw-r--r--test/suite/ch13/13.1/13.1-13-s.js48
-rw-r--r--test/suite/ch13/13.1/13.1-13gs.js31
-rw-r--r--test/suite/ch13/13.1/13.1-14-s.js50
-rw-r--r--test/suite/ch13/13.1/13.1-15-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-16-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-17-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-18-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-19-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-1gs.js32
-rw-r--r--test/suite/ch13/13.1/13.1-2-1.js44
-rw-r--r--test/suite/ch13/13.1/13.1-2-2.js36
-rw-r--r--test/suite/ch13/13.1/13.1-2-5.js44
-rw-r--r--test/suite/ch13/13.1/13.1-2-6.js36
-rw-r--r--test/suite/ch13/13.1/13.1-2-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-20-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-21-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-22-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-23-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-24-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-25-s.js56
-rw-r--r--test/suite/ch13/13.1/13.1-26-s.js56
-rw-r--r--test/suite/ch13/13.1/13.1-27-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-28-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-29-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-3-1.js44
-rw-r--r--test/suite/ch13/13.1/13.1-3-2.js44
-rw-r--r--test/suite/ch13/13.1/13.1-3-7.js44
-rw-r--r--test/suite/ch13/13.1/13.1-3-8.js44
-rw-r--r--test/suite/ch13/13.1/13.1-3-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-30-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-31-s.js56
-rw-r--r--test/suite/ch13/13.1/13.1-32-s.js56
-rw-r--r--test/suite/ch13/13.1/13.1-33-s.js55
-rw-r--r--test/suite/ch13/13.1/13.1-34-s.js54
-rw-r--r--test/suite/ch13/13.1/13.1-35-s.js46
-rw-r--r--test/suite/ch13/13.1/13.1-36-s.js47
-rw-r--r--test/suite/ch13/13.1/13.1-37-s.js46
-rw-r--r--test/suite/ch13/13.1/13.1-38-s.js47
-rw-r--r--test/suite/ch13/13.1/13.1-39-s.js46
-rw-r--r--test/suite/ch13/13.1/13.1-4-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-40-s.js47
-rw-r--r--test/suite/ch13/13.1/13.1-41-s.js46
-rw-r--r--test/suite/ch13/13.1/13.1-42-s.js47
-rw-r--r--test/suite/ch13/13.1/13.1-4gs.js32
-rw-r--r--test/suite/ch13/13.1/13.1-5-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-5gs.js31
-rw-r--r--test/suite/ch13/13.1/13.1-6-s.js58
-rw-r--r--test/suite/ch13/13.1/13.1-7-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-8-s.js57
-rw-r--r--test/suite/ch13/13.1/13.1-8gs.js31
-rw-r--r--test/suite/ch13/13.1/13.1-9-s.js58
57 files changed, 1492 insertions, 1332 deletions
diff --git a/test/suite/ch13/13.1/13.1-1-1.js b/test/suite/ch13/13.1/13.1-1-1.js
index a30103edc..fbed98636 100644
--- a/test/suite/ch13/13.1/13.1-1-1.js
+++ b/test/suite/ch13/13.1/13.1-1-1.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 ch13/13.1/13.1-1-1.js
- * @description Duplicate identifier allowed in non-strict function declaration parameter list
- */
-
-
-function testcase()
-{
- try
- {
- eval('function foo(a,a){}');
- return true;
- }
- catch (e) { return false }
- }
-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: >
+ Duplicate identifier allowed in non-strict function declaration
+ parameter list
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval('function foo(a,a){}');
+ return true;
+ }
+ catch (e) { return false }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-1-2.js b/test/suite/ch13/13.1/13.1-1-2.js
index dc6708fb4..ac47be73b 100644
--- a/test/suite/ch13/13.1/13.1-1-2.js
+++ b/test/suite/ch13/13.1/13.1-1-2.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 ch13/13.1/13.1-1-2.js
- * @description Duplicate identifier allowed in non-strict function expression parameter list
- */
-
-
-function testcase()
-{
- try
- {
- eval('(function foo(a,a){})');
- return true;
- }
- catch (e) { return false }
- }
-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: >
+ Duplicate identifier allowed in non-strict function expression
+ parameter list
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval('(function foo(a,a){})');
+ return true;
+ }
+ catch (e) { return false }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-1-s.js b/test/suite/ch13/13.1/13.1-1-s.js
index 4768b2072..ca769e892 100644
--- a/test/suite/ch13/13.1/13.1-1-s.js
+++ b/test/suite/ch13/13.1/13.1-1-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-1-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionDeclaration
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("function _13_1_1_fun(eval) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("function _13_1_1_fun(eval) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-10-s.js b/test/suite/ch13/13.1/13.1-10-s.js
index 802c13ab4..39adef0ed 100644
--- a/test/suite/ch13/13.1/13.1-10-s.js
+++ b/test/suite/ch13/13.1/13.1-10-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-10-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created in 'strict mode' using a FunctionExpression and the function has three identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_1_10_fun = function (param, param, param) { };")
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created in
+ 'strict mode' using a FunctionExpression and the function has
+ three identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_1_10_fun = function (param, param, param) { };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-11-s.js b/test/suite/ch13/13.1/13.1-11-s.js
index 5f63b5627..a4f29c148 100644
--- a/test/suite/ch13/13.1/13.1-11-s.js
+++ b/test/suite/ch13/13.1/13.1-11-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 ch13/13.1/13.1-11-s.js
- * @description StrictMode - SyntaxError is thrown if 'eval' occurs as the function name of a FunctionDeclaration in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- eval("function eval() { };")
- 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: >
+ StrictMode - SyntaxError is thrown if 'eval' occurs as the
+ function name of a FunctionDeclaration in strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ try {
+ eval("function eval() { };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-12-s.js b/test/suite/ch13/13.1/13.1-12-s.js
index 8ebf40b26..37a54fce1 100644
--- a/test/suite/ch13/13.1/13.1-12-s.js
+++ b/test/suite/ch13/13.1/13.1-12-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 ch13/13.1/13.1-12-s.js
- * @description StrictMode - SyntaxError is thrown if 'eval' occurs as the Identifier of a FunctionExpression in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _13_1_12_s = {};
-
- try {
- eval("_13_1_12_s.x = function eval() {};");
- 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: >
+ StrictMode - SyntaxError is thrown if 'eval' occurs as the
+ Identifier of a FunctionExpression in strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ var _13_1_12_s = {};
+
+ try {
+ eval("_13_1_12_s.x = function eval() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-13-s.js b/test/suite/ch13/13.1/13.1-13-s.js
index b1eb17421..313cb653d 100644
--- a/test/suite/ch13/13.1/13.1-13-s.js
+++ b/test/suite/ch13/13.1/13.1-13-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 ch13/13.1/13.1-13-s.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the function name of a FunctionDeclaration in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("function arguments() { };")
- 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: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ function name of a FunctionDeclaration in strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("function arguments() { };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-13gs.js b/test/suite/ch13/13.1/13.1-13gs.js
index 5287ab343..a79eeeff3 100644
--- a/test/suite/ch13/13.1/13.1-13gs.js
+++ b/test/suite/ch13/13.1/13.1-13gs.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 ch13/13.1/13.1-13gs.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the Identifier of a FunctionDeclaration
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-function arguments() { };
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ Identifier of a FunctionDeclaration
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+function arguments() { };
diff --git a/test/suite/ch13/13.1/13.1-14-s.js b/test/suite/ch13/13.1/13.1-14-s.js
index 4841cee18..b4b18d59d 100644
--- a/test/suite/ch13/13.1/13.1-14-s.js
+++ b/test/suite/ch13/13.1/13.1-14-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 ch13/13.1/13.1-14-s.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the Identifier of a FunctionExpression in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- var _13_1_14_s = {};
-
- try {
- eval("_13_1_14_s.x = function arguments() {};");
- 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: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ Identifier of a FunctionExpression in strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ var _13_1_14_s = {};
+
+ try {
+ eval("_13_1_14_s.x = function arguments() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-15-s.js b/test/suite/ch13/13.1/13.1-15-s.js
index 0f49d0b97..27fb42033 100644
--- a/test/suite/ch13/13.1/13.1-15-s.js
+++ b/test/suite/ch13/13.1/13.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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-15-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionDeclaration in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict';function _13_1_15_fun(eval) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict';function _13_1_15_fun(eval) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-16-s.js b/test/suite/ch13/13.1/13.1-16-s.js
index 4dd74265a..8e2f77a92 100644
--- a/test/suite/ch13/13.1/13.1-16-s.js
+++ b/test/suite/ch13/13.1/13.1-16-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-16-s.js
- * @description StrictMode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionDeclaration when FuctionBody is strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("function _13_1_16_fun(eval) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ StrictMode - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration when FuctionBody is strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("function _13_1_16_fun(eval) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-17-s.js b/test/suite/ch13/13.1/13.1-17-s.js
index e38ee27c6..c3a0be456 100644
--- a/test/suite/ch13/13.1/13.1-17-s.js
+++ b/test/suite/ch13/13.1/13.1-17-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-17-s.js
- * @description StrictMode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionExpression in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_1_17_fun = function (eval) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ StrictMode - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_1_17_fun = function (eval) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-18-s.js b/test/suite/ch13/13.1/13.1-18-s.js
index 51668c621..f404d2ce0 100644
--- a/test/suite/ch13/13.1/13.1-18-s.js
+++ b/test/suite/ch13/13.1/13.1-18-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-18-s.js
- * @description StrictMode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionExpression when FuctionBody is strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_1_18_fun = function (eval) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ StrictMode - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression when FuctionBody is strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_1_18_fun = function (eval) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-19-s.js b/test/suite/ch13/13.1/13.1-19-s.js
index a063fba9f..c48cddb30 100644
--- a/test/suite/ch13/13.1/13.1-19-s.js
+++ b/test/suite/ch13/13.1/13.1-19-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-19-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionDeclaration in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict';function _13_1_19_fun(arguments) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict';function _13_1_19_fun(arguments) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-1gs.js b/test/suite/ch13/13.1/13.1-1gs.js
index bc4971291..391552cfc 100644
--- a/test/suite/ch13/13.1/13.1-1gs.js
+++ b/test/suite/ch13/13.1/13.1-1gs.js
@@ -1,14 +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 ch13/13.1/13.1-1gs.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionDeclaration
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-function _13_1_1_fun(eval) { } \ 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 - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+function _13_1_1_fun(eval) { }
diff --git a/test/suite/ch13/13.1/13.1-2-1.js b/test/suite/ch13/13.1/13.1-2-1.js
index 8d4155037..85ebac8d5 100644
--- a/test/suite/ch13/13.1/13.1-2-1.js
+++ b/test/suite/ch13/13.1/13.1-2-1.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 ch13/13.1/13.1-2-1.js
- * @description eval allowed as formal parameter name of a non-strict function declaration
- */
-
-
-function testcase()
-{
- try
- {
- eval("function foo(eval){};");
- 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: >
+ eval allowed as formal parameter name of a non-strict function
+ declaration
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval("function foo(eval){};");
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-2-2.js b/test/suite/ch13/13.1/13.1-2-2.js
index 04e19c1a6..40758bdaa 100644
--- a/test/suite/ch13/13.1/13.1-2-2.js
+++ b/test/suite/ch13/13.1/13.1-2-2.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 ch13/13.1/13.1-2-2.js
- * @description eval allowed as formal parameter name of a non-strict function expression
- */
-
-
-function testcase()
-{
- eval("(function foo(eval){});");
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ eval allowed as formal parameter name of a non-strict function
+ expression
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ eval("(function foo(eval){});");
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-2-5.js b/test/suite/ch13/13.1/13.1-2-5.js
index e60842ff1..734b4eac2 100644
--- a/test/suite/ch13/13.1/13.1-2-5.js
+++ b/test/suite/ch13/13.1/13.1-2-5.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 ch13/13.1/13.1-2-5.js
- * @description arguments allowed as formal parameter name of a non-strict function declaration
- */
-
-
-function testcase()
-{
- try
- {
- eval("function foo(arguments){};");
- 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: >
+ arguments allowed as formal parameter name of a non-strict
+ function declaration
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval("function foo(arguments){};");
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-2-6.js b/test/suite/ch13/13.1/13.1-2-6.js
index ce9b76b3c..d389424b4 100644
--- a/test/suite/ch13/13.1/13.1-2-6.js
+++ b/test/suite/ch13/13.1/13.1-2-6.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 ch13/13.1/13.1-2-6.js
- * @description arguments allowed as formal parameter name of a non-strict function expression
- */
-
-
-function testcase()
-{
- eval("(function foo(arguments){});");
- 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 allowed as formal parameter name of a non-strict
+ function expression
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ eval("(function foo(arguments){});");
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-2-s.js b/test/suite/ch13/13.1/13.1-2-s.js
index 0e3c4473a..ef7dd1b6c 100644
--- a/test/suite/ch13/13.1/13.1-2-s.js
+++ b/test/suite/ch13/13.1/13.1-2-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-2-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'eval' appears within a FormalParameterList of a strict mode FunctionExpression
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_1_2_fun = function (eval) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if the identifier 'eval'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_1_2_fun = function (eval) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-20-s.js b/test/suite/ch13/13.1/13.1-20-s.js
index 064bc4deb..602f1b0a2 100644
--- a/test/suite/ch13/13.1/13.1-20-s.js
+++ b/test/suite/ch13/13.1/13.1-20-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-20-s.js
- * @description StrictMode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionDeclaration when FuctionBody is strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("function _13_1_20_fun(arguments) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ StrictMode - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration when FuctionBody is strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("function _13_1_20_fun(arguments) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-21-s.js b/test/suite/ch13/13.1/13.1-21-s.js
index 2bf127083..148c52a35 100644
--- a/test/suite/ch13/13.1/13.1-21-s.js
+++ b/test/suite/ch13/13.1/13.1-21-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-21-s.js
- * @description StrictMode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionExpression in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_1_21_fun = function (arguments) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ StrictMode - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_1_21_fun = function (arguments) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-22-s.js b/test/suite/ch13/13.1/13.1-22-s.js
index 38e2e9726..1892529d0 100644
--- a/test/suite/ch13/13.1/13.1-22-s.js
+++ b/test/suite/ch13/13.1/13.1-22-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-22-s.js
- * @description StrictMode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionExpression when FuctionBody is strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_1_22_fun = function (arguments) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ StrictMode - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression when FuctionBody is strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_1_22_fun = function (arguments) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-23-s.js b/test/suite/ch13/13.1/13.1-23-s.js
index 748044089..bbc1bb16a 100644
--- a/test/suite/ch13/13.1/13.1-23-s.js
+++ b/test/suite/ch13/13.1/13.1-23-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-23-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionDeclaration that is contained in eval strict code and the function has two identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_1_23_fun(param, param) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionDeclaration that is contained in eval strict code and
+ the function has two identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_1_23_fun(param, param) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-24-s.js b/test/suite/ch13/13.1/13.1-24-s.js
index b39fc5c19..e22bda212 100644
--- a/test/suite/ch13/13.1/13.1-24-s.js
+++ b/test/suite/ch13/13.1/13.1-24-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-24-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionDeclaration whose FunctionBody is contained in strict code and the function has two identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("function _13_1_24_fun(param, param) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionDeclaration whose FunctionBody is contained in strict
+ code and the function has two identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("function _13_1_24_fun(param, param) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-25-s.js b/test/suite/ch13/13.1/13.1-25-s.js
index 45b0026b5..02d434c6b 100644
--- a/test/suite/ch13/13.1/13.1-25-s.js
+++ b/test/suite/ch13/13.1/13.1-25-s.js
@@ -1,26 +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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-25-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionDeclaration that is contained in eval strict code and the function has two identical parameters which are separated by a unique parameter name
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_1_25_fun(param1, param2, param1) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionDeclaration that is contained in eval strict code and
+ the function has two identical parameters which are separated by a
+ unique parameter name
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_1_25_fun(param1, param2, param1) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-26-s.js b/test/suite/ch13/13.1/13.1-26-s.js
index c9f9410fd..f668bf3c6 100644
--- a/test/suite/ch13/13.1/13.1-26-s.js
+++ b/test/suite/ch13/13.1/13.1-26-s.js
@@ -1,26 +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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-26-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionDeclaration whose FunctionBody is contained in strict code and the function has two identical parameters which are separated by a unique parameter name
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("function _13_1_26_fun(param1, param2, param1) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionDeclaration whose FunctionBody is contained in strict
+ code and the function has two identical parameters which are
+ separated by a unique parameter name
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("function _13_1_26_fun(param1, param2, param1) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-27-s.js b/test/suite/ch13/13.1/13.1-27-s.js
index aa5084332..6ad08a4c1 100644
--- a/test/suite/ch13/13.1/13.1-27-s.js
+++ b/test/suite/ch13/13.1/13.1-27-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-27-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionDeclaration that is contained in eval strict code and the function has three identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_1_27_fun(param, param, param) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionDeclaration that is contained in eval strict code and
+ the function has three identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_1_27_fun(param, param, param) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-28-s.js b/test/suite/ch13/13.1/13.1-28-s.js
index 1dbda4fc5..c3dec00bb 100644
--- a/test/suite/ch13/13.1/13.1-28-s.js
+++ b/test/suite/ch13/13.1/13.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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-28-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionDeclaration whose FunctionBody is contained in strict code and the function has three identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
-
- try {
- eval("function _13_1_28_fun(param, param, param) { 'use strict'; }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionDeclaration whose FunctionBody is contained in strict
+ code and the function has three identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+
+ try {
+ eval("function _13_1_28_fun(param, param, param) { 'use strict'; }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-29-s.js b/test/suite/ch13/13.1/13.1-29-s.js
index a7c74290d..b79bc8056 100644
--- a/test/suite/ch13/13.1/13.1-29-s.js
+++ b/test/suite/ch13/13.1/13.1-29-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-29-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionExpression that is contained in eval strict code and the function has two identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_1_29_fun = function (param, param) { };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionExpression that is contained in eval strict code and the
+ function has two identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_1_29_fun = function (param, param) { };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-3-1.js b/test/suite/ch13/13.1/13.1-3-1.js
index 47598c165..2f092a7fa 100644
--- a/test/suite/ch13/13.1/13.1-3-1.js
+++ b/test/suite/ch13/13.1/13.1-3-1.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 ch13/13.1/13.1-3-1.js
- * @description eval allowed as function identifier in non-strict function declaration
- */
-
-
-function testcase()
-{
- try
- {
- eval("function eval(){};");
- 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: >
+ eval allowed as function identifier in non-strict function
+ declaration
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval("function eval(){};");
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-3-2.js b/test/suite/ch13/13.1/13.1-3-2.js
index 598e3faf6..59caf6997 100644
--- a/test/suite/ch13/13.1/13.1-3-2.js
+++ b/test/suite/ch13/13.1/13.1-3-2.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 ch13/13.1/13.1-3-2.js
- * @description eval allowed as function identifier in non-strict function expression
- */
-
-
-function testcase()
-{
- try
- {
- eval("(function eval(){});");
- 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: >
+ eval allowed as function identifier in non-strict function
+ expression
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval("(function eval(){});");
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-3-7.js b/test/suite/ch13/13.1/13.1-3-7.js
index c6bbd159c..efc12812a 100644
--- a/test/suite/ch13/13.1/13.1-3-7.js
+++ b/test/suite/ch13/13.1/13.1-3-7.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 ch13/13.1/13.1-3-7.js
- * @description arguments allowed as function identifier in non-strict function declaration
- */
-
-
-function testcase()
-{
- try
- {
- eval("function arguments (){};");
- 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: >
+ arguments allowed as function identifier in non-strict function
+ declaration
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval("function arguments (){};");
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-3-8.js b/test/suite/ch13/13.1/13.1-3-8.js
index cd9ef9a2a..896b5a8a6 100644
--- a/test/suite/ch13/13.1/13.1-3-8.js
+++ b/test/suite/ch13/13.1/13.1-3-8.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 ch13/13.1/13.1-3-8.js
- * @description arguments allowed as function identifier in non-strict function expression
- */
-
-
-function testcase()
-{
- try
- {
- eval("(function arguments (){});");
- 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: >
+ arguments allowed as function identifier in non-strict function
+ expression
+includes: [runTestCase.js]
+---*/
+
+function testcase()
+{
+ try
+ {
+ eval("(function arguments (){});");
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-3-s.js b/test/suite/ch13/13.1/13.1-3-s.js
index ecc0385ea..7f4fb8c0c 100644
--- a/test/suite/ch13/13.1/13.1-3-s.js
+++ b/test/suite/ch13/13.1/13.1-3-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-3-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionDeclaration
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("function _13_1_3_fun(arguments) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionDeclaration
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("function _13_1_3_fun(arguments) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-30-s.js b/test/suite/ch13/13.1/13.1-30-s.js
index b07291c1d..21ab7bbde 100644
--- a/test/suite/ch13/13.1/13.1-30-s.js
+++ b/test/suite/ch13/13.1/13.1-30-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-30-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionExpression whose FunctionBody is contained in strict code and the function has two identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_1_30_fun = function (param, param) { 'use strict'; };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionExpression whose FunctionBody is contained in strict
+ code and the function has two identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_1_30_fun = function (param, param) { 'use strict'; };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-31-s.js b/test/suite/ch13/13.1/13.1-31-s.js
index 1e47d2acf..9d1ee2bef 100644
--- a/test/suite/ch13/13.1/13.1-31-s.js
+++ b/test/suite/ch13/13.1/13.1-31-s.js
@@ -1,26 +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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-31-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionExpression that is contained in eval strict code and the function has two identical parameters, which are separated by a unique parameter name
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_1_31_fun = function (param1, param2, param1) { };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionExpression that is contained in eval strict code and the
+ function has two identical parameters, which are separated by a
+ unique parameter name
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_1_31_fun = function (param1, param2, param1) { };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-32-s.js b/test/suite/ch13/13.1/13.1-32-s.js
index b1a4ef8b1..79321c3cb 100644
--- a/test/suite/ch13/13.1/13.1-32-s.js
+++ b/test/suite/ch13/13.1/13.1-32-s.js
@@ -1,26 +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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-32-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created using a FunctionExpression whose FunctionBody is strict and the function has two identical parameters, which are separated by a unique parameter name
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_1_32_fun = function (param1, param2, param1) { 'use strict'; };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created using
+ a FunctionExpression whose FunctionBody is strict and the function
+ has two identical parameters, which are separated by a unique
+ parameter name
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_1_32_fun = function (param1, param2, param1) { 'use strict'; };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-33-s.js b/test/suite/ch13/13.1/13.1-33-s.js
index bcffbd023..66f241217 100644
--- a/test/suite/ch13/13.1/13.1-33-s.js
+++ b/test/suite/ch13/13.1/13.1-33-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-33-s.js
- * @description Strict Mode - SyntaxError is thrown if function is created using a FunctionExpression that is contained in eval strict code and the function has three identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_1_33_fun = function (param, param, param) { };")
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if function is created using a
+ FunctionExpression that is contained in eval strict code and the
+ function has three identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_1_33_fun = function (param, param, param) { };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-34-s.js b/test/suite/ch13/13.1/13.1-34-s.js
index aca13ea5d..f0c90a49d 100644
--- a/test/suite/ch13/13.1/13.1-34-s.js
+++ b/test/suite/ch13/13.1/13.1-34-s.js
@@ -1,26 +1,28 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-34-s.js
- * @description Strict Mode - SyntaxError is thrown if a function declaration has three identical parameters with a strict mode body
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_1_34_fun = function (param, param, param) { 'use strict'; };")
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function declaration has
+ three identical parameters with a strict mode body
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_1_34_fun = function (param, param, param) { 'use strict'; };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-35-s.js b/test/suite/ch13/13.1/13.1-35-s.js
index ebe7e71f2..91add24bb 100644
--- a/test/suite/ch13/13.1/13.1-35-s.js
+++ b/test/suite/ch13/13.1/13.1-35-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 ch13/13.1/13.1-35-s.js
- * @description StrictMode - SyntaxError is thrown if 'eval' occurs as the function name of a FunctionDeclaration in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function eval() { };")
- 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: >
+ StrictMode - SyntaxError is thrown if 'eval' occurs as the
+ function name of a FunctionDeclaration in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function eval() { };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-36-s.js b/test/suite/ch13/13.1/13.1-36-s.js
index 63d08a282..71f101b5a 100644
--- a/test/suite/ch13/13.1/13.1-36-s.js
+++ b/test/suite/ch13/13.1/13.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 ch13/13.1/13.1-36-s.js
- * @description StrictMode - SyntaxError is thrown if 'eval' occurs as the function name of a FunctionDeclaration whose FunctionBody is in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("function eval() { 'use strict'; };")
- 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: >
+ StrictMode - SyntaxError is thrown if 'eval' occurs as the
+ function name of a FunctionDeclaration whose FunctionBody is in
+ strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("function eval() { 'use strict'; };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-37-s.js b/test/suite/ch13/13.1/13.1-37-s.js
index c2f27c0f1..595172d15 100644
--- a/test/suite/ch13/13.1/13.1-37-s.js
+++ b/test/suite/ch13/13.1/13.1-37-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 ch13/13.1/13.1-37-s.js
- * @description StrictMode - SyntaxError is thrown if 'eval' occurs as the Identifier of a FunctionExpression in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
- var _13_1_37_s = {};
- try {
- eval("'use strict'; _13_1_37_s.x = function eval() {};");
- 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: >
+ StrictMode - SyntaxError is thrown if 'eval' occurs as the
+ Identifier of a FunctionExpression in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var _13_1_37_s = {};
+ try {
+ eval("'use strict'; _13_1_37_s.x = function eval() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-38-s.js b/test/suite/ch13/13.1/13.1-38-s.js
index 5d73e72c3..953fde169 100644
--- a/test/suite/ch13/13.1/13.1-38-s.js
+++ b/test/suite/ch13/13.1/13.1-38-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 ch13/13.1/13.1-38-s.js
- * @description StrictMode - SyntaxError is thrown if 'eval' occurs as the Identifier of a FunctionExpression whose FunctionBody is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
- var _13_1_38_s = {};
- try {
- eval("_13_1_38_s.x = function eval() {'use strict'; };");
- 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: >
+ StrictMode - SyntaxError is thrown if 'eval' occurs as the
+ Identifier of a FunctionExpression whose FunctionBody is contained
+ in strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var _13_1_38_s = {};
+ try {
+ eval("_13_1_38_s.x = function eval() {'use strict'; };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-39-s.js b/test/suite/ch13/13.1/13.1-39-s.js
index 54eb5ee03..1951f015a 100644
--- a/test/suite/ch13/13.1/13.1-39-s.js
+++ b/test/suite/ch13/13.1/13.1-39-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 ch13/13.1/13.1-39-s.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the function name of a FunctionDeclaration in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function arguments() { };")
- 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: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ function name of a FunctionDeclaration in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function arguments() { };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-4-s.js b/test/suite/ch13/13.1/13.1-4-s.js
index ba0c1cee4..326d25482 100644
--- a/test/suite/ch13/13.1/13.1-4-s.js
+++ b/test/suite/ch13/13.1/13.1-4-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
- * of a strict mode FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-4-s.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionExpression
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_1_4_fun = function (arguments) { };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if the Identifier "eval" or the Identifier "arguments" occurs within a FormalParameterList
+ of a strict mode FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_1_4_fun = function (arguments) { };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-40-s.js b/test/suite/ch13/13.1/13.1-40-s.js
index 42d7bcbba..7824b2c3d 100644
--- a/test/suite/ch13/13.1/13.1-40-s.js
+++ b/test/suite/ch13/13.1/13.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 ch13/13.1/13.1-40-s.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the Identifier of a FunctionDeclaration whose FunctionBody is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("function arguments() { 'use strict'; };")
- 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: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ Identifier of a FunctionDeclaration whose FunctionBody is
+ contained in strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("function arguments() { 'use strict'; };")
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-41-s.js b/test/suite/ch13/13.1/13.1-41-s.js
index 9a9a3ca2b..e8ec6faa6 100644
--- a/test/suite/ch13/13.1/13.1-41-s.js
+++ b/test/suite/ch13/13.1/13.1-41-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 ch13/13.1/13.1-41-s.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the Identifier of a FunctionExpression in strict eval code
- * @onlyStrict
- */
-
-
-function testcase() {
- var _13_1_41_s = {};
- try {
- eval("'use strict'; _13_1_41_s.x = function arguments() {};");
- 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: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ Identifier of a FunctionExpression in strict eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var _13_1_41_s = {};
+ try {
+ eval("'use strict'; _13_1_41_s.x = function arguments() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-42-s.js b/test/suite/ch13/13.1/13.1-42-s.js
index f19d56c98..483f35466 100644
--- a/test/suite/ch13/13.1/13.1-42-s.js
+++ b/test/suite/ch13/13.1/13.1-42-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 ch13/13.1/13.1-42-s.js
- * @description StrictMode - SyntaxError is thrown if 'arguments' occurs as the Identifier of a FunctionExpression whose FunctionBody is contained in strict code
- * @onlyStrict
- */
-
-
-function testcase() {
- var _13_1_42_s = {};
- try {
- eval("_13_1_42_s.x = function arguments() {'use strict';};");
- 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: >
+ StrictMode - SyntaxError is thrown if 'arguments' occurs as the
+ Identifier of a FunctionExpression whose FunctionBody is contained
+ in strict code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var _13_1_42_s = {};
+ try {
+ eval("_13_1_42_s.x = function arguments() {'use strict';};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-4gs.js b/test/suite/ch13/13.1/13.1-4gs.js
index 0c501018a..a83c20aff 100644
--- a/test/suite/ch13/13.1/13.1-4gs.js
+++ b/test/suite/ch13/13.1/13.1-4gs.js
@@ -1,14 +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 ch13/13.1/13.1-4gs.js
- * @description Strict Mode - SyntaxError is thrown if the identifier 'arguments' appears within a FormalParameterList of a strict mode FunctionExpression
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-var _13_1_4_fun = function (arguments) { }; \ 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 - SyntaxError is thrown if the identifier 'arguments'
+ appears within a FormalParameterList of a strict mode
+ FunctionExpression
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+var _13_1_4_fun = function (arguments) { };
diff --git a/test/suite/ch13/13.1/13.1-5-s.js b/test/suite/ch13/13.1/13.1-5-s.js
index 6d13ca135..7d3a47233 100644
--- a/test/suite/ch13/13.1/13.1-5-s.js
+++ b/test/suite/ch13/13.1/13.1-5-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-5-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is declared in 'strict mode' using a FunctionDeclaration and the function has two identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("function _13_1_5_fun(param, param) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is declared in
+ 'strict mode' using a FunctionDeclaration and the function has two
+ identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("function _13_1_5_fun(param, param) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-5gs.js b/test/suite/ch13/13.1/13.1-5gs.js
index 709deb1e9..192ede209 100644
--- a/test/suite/ch13/13.1/13.1-5gs.js
+++ b/test/suite/ch13/13.1/13.1-5gs.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 ch13/13.1/13.1-5gs.js
- * @description Strict Mode - SyntaxError is thrown if a FunctionDeclaration has two identical parameters
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-function _13_1_5_fun(param, param) { } \ 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 - SyntaxError is thrown if a FunctionDeclaration has
+ two identical parameters
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+function _13_1_5_fun(param, param) { }
diff --git a/test/suite/ch13/13.1/13.1-6-s.js b/test/suite/ch13/13.1/13.1-6-s.js
index 10e6e7d9a..f8f9e1c82 100644
--- a/test/suite/ch13/13.1/13.1-6-s.js
+++ b/test/suite/ch13/13.1/13.1-6-s.js
@@ -1,27 +1,31 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-6-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created in 'strict mode' using a FunctionDeclaration and the function has two identical parameters, which are separated by a unique parameter name
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("function _13_1_6_fun(param1, param2, param1) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created in
+ 'strict mode' using a FunctionDeclaration and the function has two
+ identical parameters, which are separated by a unique parameter
+ name
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("function _13_1_6_fun(param1, param2, param1) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-7-s.js b/test/suite/ch13/13.1/13.1-7-s.js
index 087a20f7e..4057e8851 100644
--- a/test/suite/ch13/13.1/13.1-7-s.js
+++ b/test/suite/ch13/13.1/13.1-7-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-7-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created in 'strict mode' using a FunctionDeclaration and the function has three identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("function _13_1_7_fun(param, param, param) { }");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created in
+ 'strict mode' using a FunctionDeclaration and the function has
+ three identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("function _13_1_7_fun(param, param, param) { }");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-8-s.js b/test/suite/ch13/13.1/13.1-8-s.js
index eb9a3976b..083c7372b 100644
--- a/test/suite/ch13/13.1/13.1-8-s.js
+++ b/test/suite/ch13/13.1/13.1-8-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.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-8-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created in 'strict mode' using a FunctionExpression and the function has two identical parameters
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_1_8_fun = function (param, param) { };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created in
+ 'strict mode' using a FunctionExpression and the function has two
+ identical parameters
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_1_8_fun = function (param, param) { };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.1/13.1-8gs.js b/test/suite/ch13/13.1/13.1-8gs.js
index f647656d9..57f9891da 100644
--- a/test/suite/ch13/13.1/13.1-8gs.js
+++ b/test/suite/ch13/13.1/13.1-8gs.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 ch13/13.1/13.1-8gs.js
- * @description Strict Mode - SyntaxError is thrown if a FunctionExpression has two identical parameters
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-"use strict";
-throw NotEarlyError;
-var _13_1_8_fun = function (param, param) { }; \ 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 - SyntaxError is thrown if a FunctionExpression has
+ two identical parameters
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+var _13_1_8_fun = function (param, param) { };
diff --git a/test/suite/ch13/13.1/13.1-9-s.js b/test/suite/ch13/13.1/13.1-9-s.js
index 11aba0ce2..09ae4eb28 100644
--- a/test/suite/ch13/13.1/13.1-9-s.js
+++ b/test/suite/ch13/13.1/13.1-9-s.js
@@ -1,27 +1,31 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13.1;
- * It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
- * FunctionDeclaration or FunctionExpression.
- *
- * @path ch13/13.1/13.1-9-s.js
- * @description Strict Mode - SyntaxError is thrown if a function is created in 'strict mode' using a FunctionExpression and the function has two identical parameters, which are separated by a unique parameter name
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_1_9_fun = function (param1, param2, param1) { };");
- 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.
+
+/*---
+info: >
+ Refer 13.1;
+ It is a SyntaxError if any Identifier value occurs more than once within a FormalParameterList of a strict mode
+ FunctionDeclaration or FunctionExpression.
+description: >
+ Strict Mode - SyntaxError is thrown if a function is created in
+ 'strict mode' using a FunctionExpression and the function has two
+ identical parameters, which are separated by a unique parameter
+ name
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_1_9_fun = function (param1, param2, param1) { };");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);