aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch13
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch13')
-rw-r--r--test/suite/ch13/13.0/13.0-1.js42
-rw-r--r--test/suite/ch13/13.0/13.0-10-s.js67
-rw-r--r--test/suite/ch13/13.0/13.0-11-s.js67
-rw-r--r--test/suite/ch13/13.0/13.0-12-s.js51
-rw-r--r--test/suite/ch13/13.0/13.0-13-s.js53
-rw-r--r--test/suite/ch13/13.0/13.0-14-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-15-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-16-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-17-s.js45
-rw-r--r--test/suite/ch13/13.0/13.0-2.js42
-rw-r--r--test/suite/ch13/13.0/13.0-3.js44
-rw-r--r--test/suite/ch13/13.0/13.0-4.js46
-rw-r--r--test/suite/ch13/13.0/13.0-7-s.js55
-rw-r--r--test/suite/ch13/13.0/13.0-8-s.js57
-rw-r--r--test/suite/ch13/13.0/13.0-9-s.js63
-rw-r--r--test/suite/ch13/13.0/13.0_4-17gs.js33
-rw-r--r--test/suite/ch13/13.0/13.0_4-5gs.js33
-rw-r--r--test/suite/ch13/13.0/S13_A1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A10.js11
-rw-r--r--test/suite/ch13/13.0/S13_A11_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A11_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A11_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A11_T4.js13
-rw-r--r--test/suite/ch13/13.0/S13_A12_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A12_T2.js13
-rw-r--r--test/suite/ch13/13.0/S13_A13_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A13_T2.js11
-rw-r--r--test/suite/ch13/13.0/S13_A13_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A14.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T2.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T3.js11
-rw-r--r--test/suite/ch13/13.0/S13_A15_T4.js13
-rw-r--r--test/suite/ch13/13.0/S13_A15_T5.js11
-rw-r--r--test/suite/ch13/13.0/S13_A16.js11
-rw-r--r--test/suite/ch13/13.0/S13_A17_T1.js14
-rw-r--r--test/suite/ch13/13.0/S13_A17_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A18.js11
-rw-r--r--test/suite/ch13/13.0/S13_A19_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A19_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A2_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A2_T2.js11
-rw-r--r--test/suite/ch13/13.0/S13_A2_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A3_T1.js17
-rw-r--r--test/suite/ch13/13.0/S13_A3_T2.js17
-rw-r--r--test/suite/ch13/13.0/S13_A3_T3.js14
-rw-r--r--test/suite/ch13/13.0/S13_A4_T1.js14
-rw-r--r--test/suite/ch13/13.0/S13_A4_T2.js16
-rw-r--r--test/suite/ch13/13.0/S13_A4_T3.js16
-rw-r--r--test/suite/ch13/13.0/S13_A4_T4.js16
-rw-r--r--test/suite/ch13/13.0/S13_A6_T1.js13
-rw-r--r--test/suite/ch13/13.0/S13_A6_T2.js14
-rw-r--r--test/suite/ch13/13.0/S13_A7_T1.js11
-rw-r--r--test/suite/ch13/13.0/S13_A7_T2.js13
-rw-r--r--test/suite/ch13/13.0/S13_A7_T3.js13
-rw-r--r--test/suite/ch13/13.0/S13_A8_T1.js19
-rw-r--r--test/suite/ch13/13.0/S13_A8_T2.js15
-rw-r--r--test/suite/ch13/13.0/S13_A9.js12
-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
-rw-r--r--test/suite/ch13/13.2/13.2-1-s.js46
-rw-r--r--test/suite/ch13/13.2/13.2-10-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-11-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-12-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-13-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-14-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-15-1.js72
-rw-r--r--test/suite/ch13/13.2/13.2-15-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-16-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-17-1.js113
-rw-r--r--test/suite/ch13/13.2/13.2-17-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-18-1.js109
-rw-r--r--test/suite/ch13/13.2/13.2-18-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-19-b-3gs.js33
-rw-r--r--test/suite/ch13/13.2/13.2-19-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-2-s.js50
-rw-r--r--test/suite/ch13/13.2/13.2-20-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-21-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-22-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-23-s.js47
-rw-r--r--test/suite/ch13/13.2/13.2-24-s.js53
-rw-r--r--test/suite/ch13/13.2/13.2-25-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-26-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-27-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-28-s.js53
-rw-r--r--test/suite/ch13/13.2/13.2-29-s.js39
-rw-r--r--test/suite/ch13/13.2/13.2-3-s.js46
-rw-r--r--test/suite/ch13/13.2/13.2-30-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-31-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-32-s.js39
-rw-r--r--test/suite/ch13/13.2/13.2-33-s.js39
-rw-r--r--test/suite/ch13/13.2/13.2-34-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-35-s.js37
-rw-r--r--test/suite/ch13/13.2/13.2-36-s.js39
-rw-r--r--test/suite/ch13/13.2/13.2-4-s.js50
-rw-r--r--test/suite/ch13/13.2/13.2-5-s.js48
-rw-r--r--test/suite/ch13/13.2/13.2-6-s.js49
-rw-r--r--test/suite/ch13/13.2/13.2-7-s.js48
-rw-r--r--test/suite/ch13/13.2/13.2-8-s.js36
-rw-r--r--test/suite/ch13/13.2/13.2-9-s.js49
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A1_T1.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A4_T1.js15
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A4_T2.js15
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A4_T3.js15
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A4_T4.js15
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A5_T1.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A5_T2.js14
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A6_T1.js11
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A6_T2.js11
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A7_T1.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A7_T2.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A7_T3.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A7_T4.js26
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A8_T1.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A8_T2.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A9.1_T1.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A9.1_T2.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A9_T1.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.1_A9_T2.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A10.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A11.js21
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A12.js15
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A13.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A14.js17
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A15_T1.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A15_T2.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A15_T3.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A15_T4.js17
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A16_T1.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A16_T2.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A16_T3.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A17_T2.js12
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A17_T3.js17
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A18_T1.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A18_T2.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T1.js11
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T2.js11
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T3.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T4.js16
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T5.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T6.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T7.js11
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A19_T8.js11
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A1_T1.js13
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A1_T2.js14
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A2.js14
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A3_T1.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A3_T2.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A4_T1.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A4_T2.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A5_T1.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A5_T2.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A6_T1.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A6_T2.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A7_T1.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A7_T2.js20
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A8_T1.js23
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A8_T2.js23
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A8_T3.js23
-rw-r--r--test/suite/ch13/13.2/S13.2.2_A9.js18
-rw-r--r--test/suite/ch13/13.2/S13.2.3_A1.js13
-rw-r--r--test/suite/ch13/13.2/S13.2_A1_T1.js11
-rw-r--r--test/suite/ch13/13.2/S13.2_A1_T2.js11
-rw-r--r--test/suite/ch13/13.2/S13.2_A2_T1.js11
-rw-r--r--test/suite/ch13/13.2/S13.2_A2_T2.js11
-rw-r--r--test/suite/ch13/13.2/S13.2_A3.js16
-rw-r--r--test/suite/ch13/13.2/S13.2_A4_T1.js27
-rw-r--r--test/suite/ch13/13.2/S13.2_A4_T2.js27
-rw-r--r--test/suite/ch13/13.2/S13.2_A5.js16
-rw-r--r--test/suite/ch13/13.2/S13.2_A6_T1.js11
-rw-r--r--test/suite/ch13/13.2/S13.2_A6_T2.js13
-rw-r--r--test/suite/ch13/13.2/S13.2_A7_T1.js12
-rw-r--r--test/suite/ch13/13.2/S13.2_A7_T2.js12
-rw-r--r--test/suite/ch13/13.2/S13.2_A8_T1.js12
-rw-r--r--test/suite/ch13/13.2/S13.2_A8_T2.js12
230 files changed, 3723 insertions, 3650 deletions
diff --git a/test/suite/ch13/13.0/13.0-1.js b/test/suite/ch13/13.0/13.0-1.js
index 0873465b5..2a3de57cc 100644
--- a/test/suite/ch13/13.0/13.0-1.js
+++ b/test/suite/ch13/13.0/13.0-1.js
@@ -1,20 +1,22 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.0/13.0-1.js
- * @description 13.0 - multiple names in one function declaration is not allowed, two function names
- */
-
-
-function testcase() {
- try {
- eval("function x, y() {}");
- 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: >
+ 13.0 - multiple names in one function declaration is not allowed,
+ two function names
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ eval("function x, y() {}");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-10-s.js b/test/suite/ch13/13.0/13.0-10-s.js
index 71af1f4e4..208a0adad 100644
--- a/test/suite/ch13/13.0/13.0-10-s.js
+++ b/test/suite/ch13/13.0/13.0-10-s.js
@@ -1,32 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-10-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionBody with an inner function contains a Use Strict Directive
- * @onlyStrict
- */
-
-
-function testcase() {
-
- function _13_0_10_fun() {
- function _13_0_10_inner() {
- "use strict";
- eval("eval = 42;");
- }
- _13_0_10_inner();
- };
- try {
- _13_0_10_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionBody with an inner function contains a
+ Use Strict Directive
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function _13_0_10_fun() {
+ function _13_0_10_inner() {
+ "use strict";
+ eval("eval = 42;");
+ }
+ _13_0_10_inner();
+ };
+ try {
+ _13_0_10_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-11-s.js b/test/suite/ch13/13.0/13.0-11-s.js
index 5c623c054..26d23e51f 100644
--- a/test/suite/ch13/13.0/13.0-11-s.js
+++ b/test/suite/ch13/13.0/13.0-11-s.js
@@ -1,32 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-11-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionBody with an inner function which is in strict mode
- * @onlyStrict
- */
-
-
-function testcase() {
-
- function _13_0_11_fun() {
- "use strict";
- function _13_0_11_inner() {
- eval("eval = 42;");
- }
- _13_0_11_inner();
- };
- try {
- _13_0_11_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionBody with an inner function which is in
+ strict mode
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function _13_0_11_fun() {
+ "use strict";
+ function _13_0_11_inner() {
+ eval("eval = 42;");
+ }
+ _13_0_11_inner();
+ };
+ try {
+ _13_0_11_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-12-s.js b/test/suite/ch13/13.0/13.0-12-s.js
index 17d593f1e..a28801421 100644
--- a/test/suite/ch13/13.0/13.0-12-s.js
+++ b/test/suite/ch13/13.0/13.0-12-s.js
@@ -1,24 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-12-s.js
- * @description Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code and the function constructor body is not strict
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var _13_0_12_fun = new Function(" ","eval = 42;");
- _13_0_12_fun();
- return true;
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code and
+ the function constructor body is not strict
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ var _13_0_12_fun = new Function(" ","eval = 42;");
+ _13_0_12_fun();
+ return true;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-13-s.js b/test/suite/ch13/13.0/13.0-13-s.js
index 1e231e4aa..7ad6f2b63 100644
--- a/test/suite/ch13/13.0/13.0-13-s.js
+++ b/test/suite/ch13/13.0/13.0-13-s.js
@@ -1,25 +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;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-13-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the function body of a Function constructor begins with a Strict Directive
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("var _13_0_13_fun = new Function(\" \", \"'use strict'; eval = 42;\"); _13_0_13_fun();");
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the function body of a Function constructor begins with a Strict
+ Directive
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("var _13_0_13_fun = new Function(\" \", \"'use strict'; eval = 42;\"); _13_0_13_fun();");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-14-s.js b/test/suite/ch13/13.0/13.0-14-s.js
index 86ec4534d..a9838dca5 100644
--- a/test/suite/ch13/13.0/13.0-14-s.js
+++ b/test/suite/ch13/13.0/13.0-14-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;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-14-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the function body of a Function constructor contains a Strict Directive
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; ");
- _13_0_14_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the function body of a Function constructor contains a Strict
+ Directive
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; ");
+ _13_0_14_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-15-s.js b/test/suite/ch13/13.0/13.0-15-s.js
index 7f86492f7..d4095ea13 100644
--- a/test/suite/ch13/13.0/13.0-15-s.js
+++ b/test/suite/ch13/13.0/13.0-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;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-15-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration is contained in strict mode code within eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_0_15_fun() {eval = 42;};");
- _13_0_15_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionDeclaration is contained in strict mode code within eval
+ code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_0_15_fun() {eval = 42;};");
+ _13_0_15_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-16-s.js b/test/suite/ch13/13.0/13.0-16-s.js
index 93c01c323..1a2e010e5 100644
--- a/test/suite/ch13/13.0/13.0-16-s.js
+++ b/test/suite/ch13/13.0/13.0-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;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-16-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionExpression is contained in strict mode code within eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; var _13_0_16_fun = function () {eval = 42;};");
- _13_0_16_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionExpression is contained in strict mode code within eval
+ code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; var _13_0_16_fun = function () {eval = 42;};");
+ _13_0_16_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-17-s.js b/test/suite/ch13/13.0/13.0-17-s.js
index 283b3f7c3..a8b1f47c2 100644
--- a/test/suite/ch13/13.0/13.0-17-s.js
+++ b/test/suite/ch13/13.0/13.0-17-s.js
@@ -1,21 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-17-s.js
- * @description Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code within eval code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- eval("'use strict'; var _13_0_17_fun = new Function('eval = 42;'); _13_0_17_fun();");
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+info: >
+ Refer 13;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code
+ within eval code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ eval("'use strict'; var _13_0_17_fun = new Function('eval = 42;'); _13_0_17_fun();");
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-2.js b/test/suite/ch13/13.0/13.0-2.js
index d30becfbf..8c1c20a09 100644
--- a/test/suite/ch13/13.0/13.0-2.js
+++ b/test/suite/ch13/13.0/13.0-2.js
@@ -1,20 +1,22 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.0/13.0-2.js
- * @description 13.0 - multiple names in one function declaration is not allowed, three function names
- */
-
-
-function testcase() {
- try {
- eval("function x,y,z(){}");
- 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: >
+ 13.0 - multiple names in one function declaration is not allowed,
+ three function names
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ eval("function x,y,z(){}");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-3.js b/test/suite/ch13/13.0/13.0-3.js
index 780c2d2b9..f88e2239d 100644
--- a/test/suite/ch13/13.0/13.0-3.js
+++ b/test/suite/ch13/13.0/13.0-3.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.0/13.0-3.js
- * @description 13.0 - property names in function definition is not allowed, add a new property into object
- */
-
-
-function testcase() {
- var obj = {};
- try {
- eval("function obj.tt() {};");
- 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: >
+ 13.0 - property names in function definition is not allowed, add a
+ new property into object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var obj = {};
+ try {
+ eval("function obj.tt() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-4.js b/test/suite/ch13/13.0/13.0-4.js
index ce881f319..09e55d0a4 100644
--- a/test/suite/ch13/13.0/13.0-4.js
+++ b/test/suite/ch13/13.0/13.0-4.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.0/13.0-4.js
- * @description 13.0 - multiple names in one function declaration is not allowed, add a new property into a property which is a object
- */
-
-
-function testcase() {
- var obj = {};
- obj.tt = { len: 10 };
- try {
- eval("function obj.tt.ss() {};");
- 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: >
+ 13.0 - multiple names in one function declaration is not allowed,
+ add a new property into a property which is a object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var obj = {};
+ obj.tt = { len: 10 };
+ try {
+ eval("function obj.tt.ss() {};");
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-7-s.js b/test/suite/ch13/13.0/13.0-7-s.js
index e73ed6548..2ebef3058 100644
--- a/test/suite/ch13/13.0/13.0-7-s.js
+++ b/test/suite/ch13/13.0/13.0-7-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;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-7-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionDeclaration is contained in non-strict mode but the call to eval is a direct call in strict mode code
- * @onlyStrict
- */
-
-
-function testcase() {
-
- try {
- eval("'use strict'; function _13_0_7_fun() {eval = 42;};");
- _13_0_7_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionDeclaration is contained in non-strict
+ mode but the call to eval is a direct call in strict mode code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ try {
+ eval("'use strict'; function _13_0_7_fun() {eval = 42;};");
+ _13_0_7_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-8-s.js b/test/suite/ch13/13.0/13.0-8-s.js
index a1b6e22a3..ad06ced9c 100644
--- a/test/suite/ch13/13.0/13.0-8-s.js
+++ b/test/suite/ch13/13.0/13.0-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;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-8-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when the code of this FunctionExpression is contained in non-strict mode but the call to eval is a direct call in strict mode code
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- try {
- eval("var _13_0_8_fun = function () {eval = 42;};");
- _13_0_8_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ the code of this FunctionExpression is contained in non-strict
+ mode but the call to eval is a direct call in strict mode code
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ try {
+ eval("var _13_0_8_fun = function () {eval = 42;};");
+ _13_0_8_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0-9-s.js b/test/suite/ch13/13.0/13.0-9-s.js
index a7f12ca4f..a7e68b554 100644
--- a/test/suite/ch13/13.0/13.0-9-s.js
+++ b/test/suite/ch13/13.0/13.0-9-s.js
@@ -1,30 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * Refer 13;
- * The production FunctionBody : SourceElementsopt is evaluated as follows:
- *
- * @path ch13/13.0/13.0-9-s.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration that is contained in strict mode code has an inner function
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var _13_0_9_fun = function () {
- function _13_0_9_inner() { eval("eval = 42;"); }
- _13_0_9_inner();
- };
- try {
- _13_0_9_fun();
- 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;
+ The production FunctionBody : SourceElementsopt is evaluated as follows:
+description: >
+ Strict Mode - SourceElements is evaluated as strict mode code when
+ a FunctionDeclaration that is contained in strict mode code has an
+ inner function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ var _13_0_9_fun = function () {
+ function _13_0_9_inner() { eval("eval = 42;"); }
+ _13_0_9_inner();
+ };
+ try {
+ _13_0_9_fun();
+ return false;
+ } catch (e) {
+ return e instanceof SyntaxError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.0/13.0_4-17gs.js b/test/suite/ch13/13.0/13.0_4-17gs.js
index c5eb74302..7575dabf5 100644
--- a/test/suite/ch13/13.0/13.0_4-17gs.js
+++ b/test/suite/ch13/13.0/13.0_4-17gs.js
@@ -1,16 +1,17 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch13/13.0/13.0_4-17gs.js
- * @description Strict Mode - SourceElements is not evaluated as strict mode code when a Function constructor is contained in strict mode code
- * @onlyStrict
- * @negative NotEarlyError
- */
-
-"use strict";
-var _13_0_4_17_fun = new Function('eval = 42;');
-throw NotEarlyError;
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Strict Mode - SourceElements is not evaluated as strict mode code
+ when a Function constructor is contained in strict mode code
+negative: NotEarlyError
+flags: [onlyStrict]
+---*/
+
+"use strict";
+var _13_0_4_17_fun = new Function('eval = 42;');
+throw NotEarlyError;
diff --git a/test/suite/ch13/13.0/13.0_4-5gs.js b/test/suite/ch13/13.0/13.0_4-5gs.js
index 4f9c01325..6d2ab4fdf 100644
--- a/test/suite/ch13/13.0/13.0_4-5gs.js
+++ b/test/suite/ch13/13.0/13.0_4-5gs.js
@@ -1,16 +1,17 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-
-/**
- * @path ch13/13.0/13.0_4-5gs.js
- * @description Strict Mode - SourceElements is evaluated as strict mode code when a FunctionDeclaration is contained in strict mode code
- * @onlyStrict
- * @negative ^((?!NotEarlyError).)*$
- */
-
-"use strict";
-throw NotEarlyError;
-function _13_0_4_5_fun() { eval = 42; };
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "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 - SourceElements is evaluated as strict mode code when
+ a FunctionDeclaration is contained in strict mode code
+negative: ^((?!NotEarlyError).)*$
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+function _13_0_4_5_fun() { eval = 42; };
diff --git a/test/suite/ch13/13.0/S13_A1.js b/test/suite/ch13/13.0/S13_A1.js
index 8d0a905af..73bf7fe20 100644
--- a/test/suite/ch13/13.0/S13_A1.js
+++ b/test/suite/ch13/13.0/S13_A1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * "x=function y(){}" statement does not store a reference to the new function in the varaible y(Identifier)
- *
- * @path ch13/13.0/S13_A1.js
- * @description Checking the type of y
- */
+/*---
+info: >
+ "x=function y(){}" statement does not store a reference to the new
+ function in the varaible y(Identifier)
+description: Checking the type of y
+---*/
var __func = function __exp__func(){return 0;};
@@ -28,4 +28,3 @@ if (typeof __exp__func !== "undefined"){
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A10.js b/test/suite/ch13/13.0/S13_A10.js
index dd85f242b..350a370a3 100644
--- a/test/suite/ch13/13.0/S13_A10.js
+++ b/test/suite/ch13/13.0/S13_A10.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function is a data
- *
- * @path ch13/13.0/S13_A10.js
- * @description Using function as a property of an object
- */
+/*---
+info: Function is a data
+description: Using function as a property of an object
+---*/
function __ziggy__func(){return "ziggy stardust"}
@@ -29,4 +27,3 @@ if (__music_box.ziggy() !== "ziggy stardust") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T1.js b/test/suite/ch13/13.0/S13_A11_T1.js
index e9dc0e39a..18c0091c2 100644
--- a/test/suite/ch13/13.0/S13_A11_T1.js
+++ b/test/suite/ch13/13.0/S13_A11_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T1.js
- * @description Returning result of "delete arguments"
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: Returning result of "delete arguments"
+---*/
function __func(){ return delete arguments;}
@@ -17,4 +17,3 @@ if (__func("A","B",1,2)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T2.js b/test/suite/ch13/13.0/S13_A11_T2.js
index 18886a307..be2845441 100644
--- a/test/suite/ch13/13.0/S13_A11_T2.js
+++ b/test/suite/ch13/13.0/S13_A11_T2.js
@@ -1,12 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T2.js
- * @description Checking if deleting the arguments property fails and then returning it
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: >
+ Checking if deleting the arguments property fails and then
+ returning it
+---*/
function __func(){
delete arguments;
@@ -20,4 +22,3 @@ if (typeof __func("A","B",1,2) !== "object") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T3.js b/test/suite/ch13/13.0/S13_A11_T3.js
index 94345da8f..03cb0ab3e 100644
--- a/test/suite/ch13/13.0/S13_A11_T3.js
+++ b/test/suite/ch13/13.0/S13_A11_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T3.js
- * @description Deleting arguments[i] and returning result of the operation
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: Deleting arguments[i] and returning result of the operation
+---*/
function __func(){
was_del=false;
@@ -22,4 +22,3 @@ if (!__func("A","B",1,2)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A11_T4.js b/test/suite/ch13/13.0/S13_A11_T4.js
index c107879cd..63535c193 100644
--- a/test/suite/ch13/13.0/S13_A11_T4.js
+++ b/test/suite/ch13/13.0/S13_A11_T4.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since arguments property has attribute { DontDelete }, only its elements can be deleted
- *
- * @path ch13/13.0/S13_A11_T4.js
- * @description Deleting arguments[i] and checking the type of arguments[i]
- */
+/*---
+info: >
+ Since arguments property has attribute { DontDelete }, only its elements
+ can be deleted
+description: Deleting arguments[i] and checking the type of arguments[i]
+---*/
function __func(){
is_undef=true;
@@ -25,4 +25,3 @@ if (!__func("A","B",1,2)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A12_T1.js b/test/suite/ch13/13.0/S13_A12_T1.js
index 278a46ac6..ab805b0e0 100644
--- a/test/suite/ch13/13.0/S13_A12_T1.js
+++ b/test/suite/ch13/13.0/S13_A12_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function declarations in global or function scope are {DontDelete}
- *
- * @path ch13/13.0/S13_A12_T1.js
- * @description Checking if deleting a function that is declared in global scope fails
- */
+/*---
+info: Function declarations in global or function scope are {DontDelete}
+description: >
+ Checking if deleting a function that is declared in global scope
+ fails
+---*/
ALIVE="Letov is alive"
@@ -29,4 +29,3 @@ if (__func() !== ALIVE) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A12_T2.js b/test/suite/ch13/13.0/S13_A12_T2.js
index 08ea18247..ced684e3f 100644
--- a/test/suite/ch13/13.0/S13_A12_T2.js
+++ b/test/suite/ch13/13.0/S13_A12_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function declarations in global or function scope are {DontDelete}
- *
- * @path ch13/13.0/S13_A12_T2.js
- * @description Checking if deleting a function that is declared in function scope fails
- */
+/*---
+info: Function declarations in global or function scope are {DontDelete}
+description: >
+ Checking if deleting a function that is declared in function scope
+ fails
+---*/
ALIVE="Letov is alive"
@@ -34,4 +34,3 @@ function __cont(){
};
__cont();
-
diff --git a/test/suite/ch13/13.0/S13_A13_T1.js b/test/suite/ch13/13.0/S13_A13_T1.js
index 072966196..05e76c1a1 100644
--- a/test/suite/ch13/13.0/S13_A13_T1.js
+++ b/test/suite/ch13/13.0/S13_A13_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Deleting arguments[i] leads to breaking the connection to local reference
- *
- * @path ch13/13.0/S13_A13_T1.js
- * @description Deleting arguments[i]
- */
+/*---
+info: Deleting arguments[i] leads to breaking the connection to local reference
+description: Deleting arguments[i]
+---*/
function __func(__arg){
delete arguments[0];
@@ -23,4 +21,3 @@ if (__func(1) !== 1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A13_T2.js b/test/suite/ch13/13.0/S13_A13_T2.js
index 49ba62ada..3c183a21e 100644
--- a/test/suite/ch13/13.0/S13_A13_T2.js
+++ b/test/suite/ch13/13.0/S13_A13_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Deleting arguments[i] leads to breaking the connection to local reference
- *
- * @path ch13/13.0/S13_A13_T2.js
- * @description Changing arguments value and then deleting the argument
- */
+/*---
+info: Deleting arguments[i] leads to breaking the connection to local reference
+description: Changing arguments value and then deleting the argument
+---*/
function __func(__arg){
__arg = 2;
@@ -24,4 +22,3 @@ if (__func(1) !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A13_T3.js b/test/suite/ch13/13.0/S13_A13_T3.js
index 715150018..dbbb6ca00 100644
--- a/test/suite/ch13/13.0/S13_A13_T3.js
+++ b/test/suite/ch13/13.0/S13_A13_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Deleting arguments[i] leads to breaking the connection to local reference
- *
- * @path ch13/13.0/S13_A13_T3.js
- * @description Changing argument value, deleting the argument and then defining a new value for arguments[i]
- */
+/*---
+info: Deleting arguments[i] leads to breaking the connection to local reference
+description: >
+ Changing argument value, deleting the argument and then defining a
+ new value for arguments[i]
+---*/
function __func(__arg){
__arg = 2;
@@ -28,4 +28,3 @@ if (__func(1) !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A14.js b/test/suite/ch13/13.0/S13_A14.js
index 7d5bc732f..67c16cfb4 100644
--- a/test/suite/ch13/13.0/S13_A14.js
+++ b/test/suite/ch13/13.0/S13_A14.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Unicode symbols in function name are allowed
- *
- * @path ch13/13.0/S13_A14.js
- * @description Defining function name with unicode symbols
- */
+/*---
+info: Unicode symbols in function name are allowed
+description: Defining function name with unicode symbols
+---*/
eval("function __func\u0041(__arg){return __arg;};");
@@ -17,4 +15,3 @@ if (typeof __funcA !== "function") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T1.js b/test/suite/ch13/13.0/S13_A15_T1.js
index 74531f8c5..70251b57e 100644
--- a/test/suite/ch13/13.0/S13_A15_T1.js
+++ b/test/suite/ch13/13.0/S13_A15_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T1.js
- * @description Declaring a function with "__func(arguments)"
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Declaring a function with "__func(arguments)"
+---*/
function __func(arguments){
return arguments;
@@ -19,4 +17,3 @@ if (__func(42) !== 42) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T2.js b/test/suite/ch13/13.0/S13_A15_T2.js
index 77e7c847b..3eacde6f2 100644
--- a/test/suite/ch13/13.0/S13_A15_T2.js
+++ b/test/suite/ch13/13.0/S13_A15_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T2.js
- * @description Overriding arguments within functions body
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Overriding arguments within functions body
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -22,4 +20,3 @@ if (__func(42,42,42) !== THE_ANSWER) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T3.js b/test/suite/ch13/13.0/S13_A15_T3.js
index 4ba50e717..d8f941e69 100644
--- a/test/suite/ch13/13.0/S13_A15_T3.js
+++ b/test/suite/ch13/13.0/S13_A15_T3.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T3.js
- * @description Declaring a variable named with "arguments" without a function
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Declaring a variable named with "arguments" without a function
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -32,4 +30,3 @@ if (__func("The Ultimate Question") !== "The Ultimate Question") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T4.js b/test/suite/ch13/13.0/S13_A15_T4.js
index a71b34833..ef95469cc 100644
--- a/test/suite/ch13/13.0/S13_A15_T4.js
+++ b/test/suite/ch13/13.0/S13_A15_T4.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T4.js
- * @description Declaring a variable named with "arguments" and following a "return" statement within a function body
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: >
+ Declaring a variable named with "arguments" and following a
+ "return" statement within a function body
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -22,4 +22,3 @@ if (__func(42,42,42) !== "object") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A15_T5.js b/test/suite/ch13/13.0/S13_A15_T5.js
index 4896a19c2..b9d07e883 100644
--- a/test/suite/ch13/13.0/S13_A15_T5.js
+++ b/test/suite/ch13/13.0/S13_A15_T5.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ''arguments'' variable overrides ActivationObject.arguments
- *
- * @path ch13/13.0/S13_A15_T5.js
- * @description Creating a variable named with "arguments" without a function
- */
+/*---
+info: "''arguments'' variable overrides ActivationObject.arguments"
+description: Creating a variable named with "arguments" without a function
+---*/
THE_ANSWER="Answer to Life, the Universe, and Everything";
@@ -31,4 +29,3 @@ if (__func("The Ultimate Question") === "The Ultimate Question") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A16.js b/test/suite/ch13/13.0/S13_A16.js
index 8b8ee7080..00bca7e59 100644
--- a/test/suite/ch13/13.0/S13_A16.js
+++ b/test/suite/ch13/13.0/S13_A16.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Any separators are admitted between declaration chunks
- *
- * @path ch13/13.0/S13_A16.js
- * @description Inserting separators between declaration chunks
- */
+/*---
+info: Any separators are admitted between declaration chunks
+description: Inserting separators between declaration chunks
+---*/
function
x
@@ -41,4 +39,3 @@ z();
eval("function\u0009\u2029w(\u000C)\u00A0{\u000D};");
w();
-
diff --git a/test/suite/ch13/13.0/S13_A17_T1.js b/test/suite/ch13/13.0/S13_A17_T1.js
index 1ea6c287a..ae9165247 100644
--- a/test/suite/ch13/13.0/S13_A17_T1.js
+++ b/test/suite/ch13/13.0/S13_A17_T1.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function call cannot appear in the program before the FunctionExpression appears
- *
- * @path ch13/13.0/S13_A17_T1.js
- * @description Trying to call a function before the FunctionExpression appears
- */
+/*---
+info: >
+ Function call cannot appear in the program before the FunctionExpression
+ appears
+description: Trying to call a function before the FunctionExpression appears
+includes: [$FAIL.js]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -42,4 +43,3 @@ if (__result !== "TWO") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A17_T2.js b/test/suite/ch13/13.0/S13_A17_T2.js
index d502d3b46..094e50812 100644
--- a/test/suite/ch13/13.0/S13_A17_T2.js
+++ b/test/suite/ch13/13.0/S13_A17_T2.js
@@ -1,12 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function call cannot appear in the program before the FunctionExpression appears
- *
- * @path ch13/13.0/S13_A17_T2.js
- * @description Trying to call a function before the FunctionExpression appears and then using the FunctionExpression one more time
- */
+/*---
+info: >
+ Function call cannot appear in the program before the FunctionExpression
+ appears
+description: >
+ Trying to call a function before the FunctionExpression appears
+ and then using the FunctionExpression one more time
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -43,4 +45,3 @@ if (__result !== "TWO") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A18.js b/test/suite/ch13/13.0/S13_A18.js
index 827db7547..7319efc56 100644
--- a/test/suite/ch13/13.0/S13_A18.js
+++ b/test/suite/ch13/13.0/S13_A18.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Closures are admitted
- *
- * @path ch13/13.0/S13_A18.js
- * @description Using a function declaration as a function parameter
- */
+/*---
+info: Closures are admitted
+description: Using a function declaration as a function parameter
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -29,4 +27,3 @@ if (typeof sinx !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A19_T1.js b/test/suite/ch13/13.0/S13_A19_T1.js
index 9bcf1921f..9d5677444 100644
--- a/test/suite/ch13/13.0/S13_A19_T1.js
+++ b/test/suite/ch13/13.0/S13_A19_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * "var" does not override function declaration
- *
- * @path ch13/13.0/S13_A19_T1.js
- * @description Creating a function and a variable with identical Identifiers in global scope
- */
+/*---
+info: "\"var\" does not override function declaration"
+description: >
+ Creating a function and a variable with identical Identifiers in
+ global scope
+---*/
// since "var" does not override function declaration __decl is set to function
//////////////////////////////////////////////////////////////////////////////
@@ -29,4 +29,3 @@ if (__decl !== 1) {
//////////////////////////////////////////////////////////////////////////////
function __decl(){return 1;}
-
diff --git a/test/suite/ch13/13.0/S13_A19_T2.js b/test/suite/ch13/13.0/S13_A19_T2.js
index 7757d8be6..06bac189b 100644
--- a/test/suite/ch13/13.0/S13_A19_T2.js
+++ b/test/suite/ch13/13.0/S13_A19_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * "var" does not override function declaration
- *
- * @path ch13/13.0/S13_A19_T2.js
- * @description Creating a function and a variable with identical Identifiers within function scope
- */
+/*---
+info: "\"var\" does not override function declaration"
+description: >
+ Creating a function and a variable with identical Identifiers
+ within function scope
+---*/
(function (){
@@ -31,5 +31,4 @@
//////////////////////////////////////////////////////////////////////////////
function __decl(){return 1;}
-})();
-
+})();
diff --git a/test/suite/ch13/13.0/S13_A2_T1.js b/test/suite/ch13/13.0/S13_A2_T1.js
index b9307ac70..09b830e5a 100644
--- a/test/suite/ch13/13.0/S13_A2_T1.js
+++ b/test/suite/ch13/13.0/S13_A2_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * function must be evaluated inside the expression
- *
- * @path ch13/13.0/S13_A2_T1.js
- * @description Defining function body with "return arg"
- */
+/*---
+info: function must be evaluated inside the expression
+description: Defining function body with "return arg"
+---*/
var x = (function __func(arg){return arg})(1);
@@ -26,4 +24,3 @@ if (typeof __func !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A2_T2.js b/test/suite/ch13/13.0/S13_A2_T2.js
index c43c58e79..62bfd6686 100644
--- a/test/suite/ch13/13.0/S13_A2_T2.js
+++ b/test/suite/ch13/13.0/S13_A2_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * function must be evaluated inside the expression
- *
- * @path ch13/13.0/S13_A2_T2.js
- * @description Defining function body with "return arg + arguments[1]"
- */
+/*---
+info: function must be evaluated inside the expression
+description: Defining function body with "return arg + arguments[1]"
+---*/
var x = (function __func(arg){return arg + arguments[1]})(1,"1");
@@ -26,4 +24,3 @@ if (typeof __func !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A2_T3.js b/test/suite/ch13/13.0/S13_A2_T3.js
index 83d3f2463..7443d09af 100644
--- a/test/suite/ch13/13.0/S13_A2_T3.js
+++ b/test/suite/ch13/13.0/S13_A2_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * function must be evaluated inside the expression
- *
- * @path ch13/13.0/S13_A2_T3.js
- * @description Defining function body with "return arguments[0] +"-"+ arguments[1]"
- */
+/*---
+info: function must be evaluated inside the expression
+description: >
+ Defining function body with "return arguments[0] +"-"+
+ arguments[1]"
+---*/
var x = (function __func(){return arguments[0] +"-"+ arguments[1]})("Obi","Wan");
@@ -26,4 +26,3 @@ if (typeof __func !== 'undefined') {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A3_T1.js b/test/suite/ch13/13.0/S13_A3_T1.js
index cac7e243d..03f19889d 100644
--- a/test/suite/ch13/13.0/S13_A3_T1.js
+++ b/test/suite/ch13/13.0/S13_A3_T1.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively
- *
- * @path ch13/13.0/S13_A3_T1.js
- * @description Creating a recursive function that calculates factorial, as a variable.
- * Function call itself by it`s name
- */
+/*---
+info: >
+ The Identifier in a FunctionExpression can be referenced from inside the
+ FunctionExpression's FunctionBody to allow the function calling itself
+ recursively
+description: >
+ Creating a recursive function that calculates factorial, as a
+ variable. Function call itself by it`s name
+---*/
var __func = function __exp__func(arg){
if (arg === 1) {
@@ -26,4 +28,3 @@ if (fact_of_3 !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A3_T2.js b/test/suite/ch13/13.0/S13_A3_T2.js
index 2137666a7..cd3466f74 100644
--- a/test/suite/ch13/13.0/S13_A3_T2.js
+++ b/test/suite/ch13/13.0/S13_A3_T2.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively
- *
- * @path ch13/13.0/S13_A3_T2.js
- * @description Creating a recursive function that calculates factorial, as a variable.
- * Function calls itself by the name of the variable
- */
+/*---
+info: >
+ The Identifier in a FunctionExpression can be referenced from inside the
+ FunctionExpression's FunctionBody to allow the function calling itself
+ recursively
+description: >
+ Creating a recursive function that calculates factorial, as a
+ variable. Function calls itself by the name of the variable
+---*/
var __func = function (arg){
if (arg === 1) {
@@ -26,4 +28,3 @@ if (fact_of_3 !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A3_T3.js b/test/suite/ch13/13.0/S13_A3_T3.js
index 467f3fea5..a05da537c 100644
--- a/test/suite/ch13/13.0/S13_A3_T3.js
+++ b/test/suite/ch13/13.0/S13_A3_T3.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Identifier in a FunctionExpression can be referenced from inside the FunctionExpression's FunctionBody to allow the function calling itself recursively
- *
- * @path ch13/13.0/S13_A3_T3.js
- * @description Creating simple recursive function that calculates factorial
- */
+/*---
+info: >
+ The Identifier in a FunctionExpression can be referenced from inside the
+ FunctionExpression's FunctionBody to allow the function calling itself
+ recursively
+description: Creating simple recursive function that calculates factorial
+---*/
function __func(arg){
if (arg === 1) {
@@ -25,4 +26,3 @@ if (fact_of_3 !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T1.js b/test/suite/ch13/13.0/S13_A4_T1.js
index 453207158..74f651395 100644
--- a/test/suite/ch13/13.0/S13_A4_T1.js
+++ b/test/suite/ch13/13.0/S13_A4_T1.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T1.js
- * @description Declaring a function that returns string
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: Declaring a function that returns string
+---*/
function __func(){return "zig-zig-sputnik";};
@@ -25,4 +26,3 @@ if (__func() !== "zig-zig-sputnik") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T2.js b/test/suite/ch13/13.0/S13_A4_T2.js
index d7b4a2788..c044b4f06 100644
--- a/test/suite/ch13/13.0/S13_A4_T2.js
+++ b/test/suite/ch13/13.0/S13_A4_T2.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T2.js
- * @description Declaring a function that uses prefix increment operator within its "return" Expression
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: >
+ Declaring a function that uses prefix increment operator within
+ its "return" Expression
+---*/
function __func(arg){return ++arg;};
@@ -25,4 +28,3 @@ if (__func(1) !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T3.js b/test/suite/ch13/13.0/S13_A4_T3.js
index 6595f4f77..1119079bf 100644
--- a/test/suite/ch13/13.0/S13_A4_T3.js
+++ b/test/suite/ch13/13.0/S13_A4_T3.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T3.js
- * @description Declaring a function that uses arithmetical operators within its "return" Expression
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: >
+ Declaring a function that uses arithmetical operators within its
+ "return" Expression
+---*/
function __func(arg1, arg2, arg3){return arg1+=(arg2+=arg3);};
@@ -25,4 +28,3 @@ if (__func(10, 20, 30) !== 60) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A4_T4.js b/test/suite/ch13/13.0/S13_A4_T4.js
index 7330bd80f..a7a7f8328 100644
--- a/test/suite/ch13/13.0/S13_A4_T4.js
+++ b/test/suite/ch13/13.0/S13_A4_T4.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The production FunctionDeclaration: "function Identifier ( FormalParameterList_opt ) { FunctionBody }" is processed by function declarations
- *
- * @path ch13/13.0/S13_A4_T4.js
- * @description Declaring a function that uses strings concatenaion opeator within its "return" Expression
- */
+/*---
+info: >
+ The production FunctionDeclaration: "function Identifier (
+ FormalParameterList_opt ) { FunctionBody }" is processed by function
+ declarations
+description: >
+ Declaring a function that uses strings concatenaion opeator within
+ its "return" Expression
+---*/
function __func(){return arguments[0].name + " " + arguments[0].surname;};
@@ -43,4 +46,3 @@ if (func__({name:'john', surname:'lennon'}) !== "john lennon") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A6_T1.js b/test/suite/ch13/13.0/S13_A6_T1.js
index 2cdd53709..b36c6747f 100644
--- a/test/suite/ch13/13.0/S13_A6_T1.js
+++ b/test/suite/ch13/13.0/S13_A6_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier
- *
- * @path ch13/13.0/S13_A6_T1.js
- * @description Duplicating function declaration
- */
+/*---
+info: >
+ FunctionDeclaration can be overrided by other FunctionDeclaration with
+ the same Identifier
+description: Duplicating function declaration
+---*/
function __func(){return 1};
@@ -33,4 +33,3 @@ if (__1 !== __A) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A6_T2.js b/test/suite/ch13/13.0/S13_A6_T2.js
index 6268e06e2..a702da31c 100644
--- a/test/suite/ch13/13.0/S13_A6_T2.js
+++ b/test/suite/ch13/13.0/S13_A6_T2.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier
- *
- * @path ch13/13.0/S13_A6_T2.js
- * @description Calling a function before it is declared one more time
- */
+/*---
+info: >
+ FunctionDeclaration can be overrided by other FunctionDeclaration with
+ the same Identifier
+description: Calling a function before it is declared one more time
+includes: [$FAIL.js]
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -33,4 +34,3 @@ if (__result !== "SECOND") {
//////////////////////////////////////////////////////////////////////////////
function __func(){return "SECOND";};
-
diff --git a/test/suite/ch13/13.0/S13_A7_T1.js b/test/suite/ch13/13.0/S13_A7_T1.js
index b83e6e140..6e755cbef 100644
--- a/test/suite/ch13/13.0/S13_A7_T1.js
+++ b/test/suite/ch13/13.0/S13_A7_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The FunctionBody must be SourceElements
- *
- * @path ch13/13.0/S13_A7_T1.js
- * @description Using only SourceElements within the FunctionBody
- */
+/*---
+info: The FunctionBody must be SourceElements
+description: Using only SourceElements within the FunctionBody
+---*/
function __func(){'ground control to major tom'};
//////////////////////////////////////////////////////////////////////////////
@@ -70,4 +68,3 @@ if (typeof __func__6 !== "function") {
//}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A7_T2.js b/test/suite/ch13/13.0/S13_A7_T2.js
index 6b381b794..0cf815087 100644
--- a/test/suite/ch13/13.0/S13_A7_T2.js
+++ b/test/suite/ch13/13.0/S13_A7_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The FunctionBody must be SourceElements
- *
- * @path ch13/13.0/S13_A7_T2.js
- * @description Inserting elements that is different from SourceElements into the FunctionBody
- */
+/*---
+info: The FunctionBody must be SourceElements
+description: >
+ Inserting elements that is different from SourceElements into the
+ FunctionBody
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -46,4 +46,3 @@ try{
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A7_T3.js b/test/suite/ch13/13.0/S13_A7_T3.js
index e2b893b65..dfce83382 100644
--- a/test/suite/ch13/13.0/S13_A7_T3.js
+++ b/test/suite/ch13/13.0/S13_A7_T3.js
@@ -1,13 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The FunctionBody must be SourceElements
- *
- * @path ch13/13.0/S13_A7_T3.js
- * @description Checking if execution of "function __func(){\A\B\C}" fails
- * @negative
- */
+/*---
+info: The FunctionBody must be SourceElements
+description: Checking if execution of "function __func(){\A\B\C}" fails
+flags: [negative]
+---*/
function __func(){\A\B\C};
-
diff --git a/test/suite/ch13/13.0/S13_A8_T1.js b/test/suite/ch13/13.0/S13_A8_T1.js
index d147259ce..74dd9948a 100644
--- a/test/suite/ch13/13.0/S13_A8_T1.js
+++ b/test/suite/ch13/13.0/S13_A8_T1.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Arguments property of activation object contains real params to be passed
- *
- * @path ch13/13.0/S13_A8_T1.js
- * @description Creating a function declared with "function __func(param1, param2, param3)" and using arguments.length property in order to perform the test
- */
+/*---
+info: Arguments property of activation object contains real params to be passed
+description: >
+ Creating a function declared with "function __func(param1, param2,
+ param3)" and using arguments.length property in order to perform
+ the test
+---*/
- function __func(param1, param2, param3) {
+function __func(param1, param2, param3) {
return arguments.length;
}
@@ -27,7 +28,3 @@ if (__func('A', 'B', 1, 2,__func) !== 5) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
diff --git a/test/suite/ch13/13.0/S13_A8_T2.js b/test/suite/ch13/13.0/S13_A8_T2.js
index 6e4b3f05c..54dc2ecf4 100644
--- a/test/suite/ch13/13.0/S13_A8_T2.js
+++ b/test/suite/ch13/13.0/S13_A8_T2.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Arguments property of activation object contains real params to be passed
- *
- * @path ch13/13.0/S13_A8_T2.js
- * @description Creating a function with no parameters and using arguments.length property in order to perform the test
- */
+/*---
+info: Arguments property of activation object contains real params to be passed
+description: >
+ Creating a function with no parameters and using arguments.length
+ property in order to perform the test
+---*/
- function __func() {
+function __func() {
return arguments.length;
}
@@ -35,4 +35,3 @@ if (__func() !== 0) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.0/S13_A9.js b/test/suite/ch13/13.0/S13_A9.js
index c13119af9..18b575dd8 100644
--- a/test/suite/ch13/13.0/S13_A9.js
+++ b/test/suite/ch13/13.0/S13_A9.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function can be passed as argument
- *
- * @path ch13/13.0/S13_A9.js
- * @description Using function as argument of another function
- */
+/*---
+info: Function can be passed as argument
+description: Using function as argument of another function
+---*/
function __func__INC(arg){return arg + 1;};
function __func__MULT(incrementator, arg, mult){ return incrementator(arg)*mult; };
@@ -18,5 +16,3 @@ if (__func__MULT(__func__INC, 2, 2) !== 6) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
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);
diff --git a/test/suite/ch13/13.2/13.2-1-s.js b/test/suite/ch13/13.2/13.2-1-s.js
index 9b3b7e1d7..b2ae3734f 100644
--- a/test/suite/ch13/13.2/13.2-1-s.js
+++ b/test/suite/ch13/13.2/13.2-1-s.js
@@ -1,22 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-1-s.js
- * @description StrictMode - Writing or reading from a property named 'caller' of function objects is allowed under both strict and normal modes.
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var foo = function () {
- this.caller = 12;
- }
- var obj = new foo();
- return obj.caller === 12;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - Writing or reading from a property named 'caller' of
+ function objects is allowed under both strict and normal modes.
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ var foo = function () {
+ this.caller = 12;
+ }
+ var obj = new foo();
+ return obj.caller === 12;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-10-s.js b/test/suite/ch13/13.2/13.2-10-s.js
index 9ab52ea93..c132fffc5 100644
--- a/test/suite/ch13/13.2/13.2-10-s.js
+++ b/test/suite/ch13/13.2/13.2-10-s.js
@@ -1,24 +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.2/13.2-10-s.js
- * @description StrictMode - writing a property named 'caller' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict';");
- try {
- foo.caller = 41;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - writing a property named 'caller' of function objects
+ is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict';");
+ try {
+ foo.caller = 41;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-11-s.js b/test/suite/ch13/13.2/13.2-11-s.js
index f08680ceb..b2bdd9e64 100644
--- a/test/suite/ch13/13.2/13.2-11-s.js
+++ b/test/suite/ch13/13.2/13.2-11-s.js
@@ -1,24 +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.2/13.2-11-s.js
- * @description StrictMode - enumerating over a function object looking for 'caller' fails outside of the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict';");
-
- for (var tempIndex in foo) {
- if (tempIndex === "caller") {
- return false;
- }
- }
- return true;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'caller' fails outside of the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict';");
+
+ for (var tempIndex in foo) {
+ if (tempIndex === "caller") {
+ return false;
+ }
+ }
+ return true;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-12-s.js b/test/suite/ch13/13.2/13.2-12-s.js
index ecb9ae413..e81d0fda5 100644
--- a/test/suite/ch13/13.2/13.2-12-s.js
+++ b/test/suite/ch13/13.2/13.2-12-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-12-s.js
- * @description StrictMode - enumerating over a function object looking for 'caller' fails inside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"caller\") {return false;}}; return true;");
- return foo();
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'caller' fails inside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"caller\") {return false;}}; return true;");
+ return foo();
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-13-s.js b/test/suite/ch13/13.2/13.2-13-s.js
index 2a087ddad..3a33028f1 100644
--- a/test/suite/ch13/13.2/13.2-13-s.js
+++ b/test/suite/ch13/13.2/13.2-13-s.js
@@ -1,24 +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.2/13.2-13-s.js
- * @description StrictMode - reading a property named 'arguments' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = new Function("'use strict';");
- try {
- var temp = foo.arguments;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - reading a property named 'arguments' of function
+ objects is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict';");
+ try {
+ var temp = foo.arguments;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-14-s.js b/test/suite/ch13/13.2/13.2-14-s.js
index 53b9bf021..27de01ea2 100644
--- a/test/suite/ch13/13.2/13.2-14-s.js
+++ b/test/suite/ch13/13.2/13.2-14-s.js
@@ -1,24 +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.2/13.2-14-s.js
- * @description StrictMode - writing a property named 'arguments' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = new Function("'use strict';");
- try {
- foo.arguments = 41;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - writing a property named 'arguments' of function
+ objects is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict';");
+ try {
+ foo.arguments = 41;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-15-1.js b/test/suite/ch13/13.2/13.2-15-1.js
index 7575c6037..3c1c6f974 100644
--- a/test/suite/ch13/13.2/13.2-15-1.js
+++ b/test/suite/ch13/13.2/13.2-15-1.js
@@ -1,35 +1,37 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-15-1.js
- * @description Function Object has length as its own property and does not invoke the setter defined on Function.prototype.length (Step 15)
- */
-
-
-function testcase() {
- var fun = function (x, y) { };
-
- var verifyValue = false;
- verifyValue = (fun.hasOwnProperty("length") && fun.length === 2);
-
- var verifyWritable = false;
- fun.length = 1001;
- verifyWritable = (fun.length === 1001);
-
- var verifyEnumerable = false;
- for (var p in fun) {
- if (p === "length") {
- verifyEnumerable = true;
- }
- }
-
- var verifyConfigurable = false;
- delete fun.length;
- verifyConfigurable = fun.hasOwnProperty("length");
-
- return verifyValue && !verifyWritable && !verifyEnumerable && verifyConfigurable;
- }
-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: >
+ Function Object has length as its own property and does not invoke
+ the setter defined on Function.prototype.length (Step 15)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var fun = function (x, y) { };
+
+ var verifyValue = false;
+ verifyValue = (fun.hasOwnProperty("length") && fun.length === 2);
+
+ var verifyWritable = false;
+ fun.length = 1001;
+ verifyWritable = (fun.length === 1001);
+
+ var verifyEnumerable = false;
+ for (var p in fun) {
+ if (p === "length") {
+ verifyEnumerable = true;
+ }
+ }
+
+ var verifyConfigurable = false;
+ delete fun.length;
+ verifyConfigurable = fun.hasOwnProperty("length");
+
+ return verifyValue && !verifyWritable && !verifyEnumerable && verifyConfigurable;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-15-s.js b/test/suite/ch13/13.2/13.2-15-s.js
index b14dd3cad..2986330fb 100644
--- a/test/suite/ch13/13.2/13.2-15-s.js
+++ b/test/suite/ch13/13.2/13.2-15-s.js
@@ -1,24 +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.2/13.2-15-s.js
- * @description StrictMode - enumerating over a function object looking for 'arguments' fails outside of the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = new Function("'use strict';");
-
- for (var tempIndex in foo) {
- if (tempIndex === "arguments") {
- return false;
- }
- }
- return true;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'arguments' fails outside of the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict';");
+
+ for (var tempIndex in foo) {
+ if (tempIndex === "arguments") {
+ return false;
+ }
+ }
+ return true;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-16-s.js b/test/suite/ch13/13.2/13.2-16-s.js
index 154887e9a..bfb558f64 100644
--- a/test/suite/ch13/13.2/13.2-16-s.js
+++ b/test/suite/ch13/13.2/13.2-16-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-16-s.js
- * @description StrictMode - enumerating over a function object looking for 'arguments' fails inside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = new Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"arguments\") {return false;}}; return true;");
- return foo();
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'arguments' fails inside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"arguments\") {return false;}}; return true;");
+ return foo();
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-17-1.js b/test/suite/ch13/13.2/13.2-17-1.js
index 654f2b5dd..ae408d8d6 100644
--- a/test/suite/ch13/13.2/13.2-17-1.js
+++ b/test/suite/ch13/13.2/13.2-17-1.js
@@ -1,55 +1,58 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (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.2/13.2-17-1.js
- * @description Function Object has 'constructor' as its own property, it is not enumerable and does not invoke the setter defined on Function.prototype.constructor (Step 17)
- */
-
-
-function testcase() {
- var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor");
- try {
- var getFunc = function () {
- return 100;
- };
-
- var data = "data";
- var setFunc = function (value) {
- data = value;
- };
-
- Object.defineProperty(Object.prototype, "constructor", {
- get: getFunc,
- set: setFunc,
- configurable: true
- });
-
- var fun = function () {};
-
- var verifyValue = false;
- verifyValue = typeof fun.prototype.constructor === "function";
-
- var verifyEnumerable = false;
- for (var p in fun.prototype) {
- if (p === "constructor" && fun.prototype.hasOwnProperty("constructor")) {
- verifyEnumerable = true;
- }
- }
-
- var verifyWritable = false;
- fun.prototype.constructor = 12;
- verifyWritable = (fun.prototype.constructor === 12);
-
- var verifyConfigurable = false;
- delete fun.prototype.constructor;
- verifyConfigurable = fun.hasOwnProperty("constructor");
-
- return verifyValue && verifyWritable && !verifyEnumerable && !verifyConfigurable && data === "data";
- } finally {
- Object.defineProperty(Object.prototype, "constructor", desc);
- }
- }
-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: >
+ Function Object has 'constructor' as its own property, it is not
+ enumerable and does not invoke the setter defined on
+ Function.prototype.constructor (Step 17)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var desc = Object.getOwnPropertyDescriptor(Object.prototype, "constructor");
+ try {
+ var getFunc = function () {
+ return 100;
+ };
+
+ var data = "data";
+ var setFunc = function (value) {
+ data = value;
+ };
+
+ Object.defineProperty(Object.prototype, "constructor", {
+ get: getFunc,
+ set: setFunc,
+ configurable: true
+ });
+
+ var fun = function () {};
+
+ var verifyValue = false;
+ verifyValue = typeof fun.prototype.constructor === "function";
+
+ var verifyEnumerable = false;
+ for (var p in fun.prototype) {
+ if (p === "constructor" && fun.prototype.hasOwnProperty("constructor")) {
+ verifyEnumerable = true;
+ }
+ }
+
+ var verifyWritable = false;
+ fun.prototype.constructor = 12;
+ verifyWritable = (fun.prototype.constructor === 12);
+
+ var verifyConfigurable = false;
+ delete fun.prototype.constructor;
+ verifyConfigurable = fun.hasOwnProperty("constructor");
+
+ return verifyValue && verifyWritable && !verifyEnumerable && !verifyConfigurable && data === "data";
+ } finally {
+ Object.defineProperty(Object.prototype, "constructor", desc);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-17-s.js b/test/suite/ch13/13.2/13.2-17-s.js
index 6ff1776b6..61012ecdb 100644
--- a/test/suite/ch13/13.2/13.2-17-s.js
+++ b/test/suite/ch13/13.2/13.2-17-s.js
@@ -1,24 +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.2/13.2-17-s.js
- * @description StrictMode - reading a property named 'arguments' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict';");
- try {
- var temp = foo.arguments;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - reading a property named 'arguments' of function
+ objects is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict';");
+ try {
+ var temp = foo.arguments;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-18-1.js b/test/suite/ch13/13.2/13.2-18-1.js
index d3614872c..acd203445 100644
--- a/test/suite/ch13/13.2/13.2-18-1.js
+++ b/test/suite/ch13/13.2/13.2-18-1.js
@@ -1,53 +1,56 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (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.2/13.2-18-1.js
- * @description Function Object has 'prototype' as its own property, it is not enumerable and does not invoke the setter defined on Function.prototype (Step 18)
- */
-
-
-function testcase() {
- try {
- var getFunc = function () {
- return 100;
- };
-
- var data = "data";
- var setFunc = function (value) {
- data = value;
- };
- Object.defineProperty(Function.prototype, "prototype", {
- get: getFunc,
- set: setFunc,
- configurable: true
- });
-
- var fun = function () { };
-
- var verifyValue = false;
- verifyValue = (fun.prototype !== 100 && fun.prototype.toString() === "[object Object]");
-
- var verifyEnumerable = false;
- for (var p in fun) {
- if (p === "prototype" && fun.hasOwnProperty("prototype")) {
- verifyEnumerable = true;
- }
- }
-
- var verifyConfigurable = false;
- delete fun.prototype;
- verifyConfigurable = fun.hasOwnProperty("prototype");
-
- var verifyWritable = false;
- fun.prototype = 12
- verifyWritable = (fun.prototype === 12);
-
- return verifyValue && verifyWritable && !verifyEnumerable && verifyConfigurable && data === "data";
- } finally {
- delete Function.prototype.prototype;
- }
- }
-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: >
+ Function Object has 'prototype' as its own property, it is not
+ enumerable and does not invoke the setter defined on
+ Function.prototype (Step 18)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ var getFunc = function () {
+ return 100;
+ };
+
+ var data = "data";
+ var setFunc = function (value) {
+ data = value;
+ };
+ Object.defineProperty(Function.prototype, "prototype", {
+ get: getFunc,
+ set: setFunc,
+ configurable: true
+ });
+
+ var fun = function () { };
+
+ var verifyValue = false;
+ verifyValue = (fun.prototype !== 100 && fun.prototype.toString() === "[object Object]");
+
+ var verifyEnumerable = false;
+ for (var p in fun) {
+ if (p === "prototype" && fun.hasOwnProperty("prototype")) {
+ verifyEnumerable = true;
+ }
+ }
+
+ var verifyConfigurable = false;
+ delete fun.prototype;
+ verifyConfigurable = fun.hasOwnProperty("prototype");
+
+ var verifyWritable = false;
+ fun.prototype = 12
+ verifyWritable = (fun.prototype === 12);
+
+ return verifyValue && verifyWritable && !verifyEnumerable && verifyConfigurable && data === "data";
+ } finally {
+ delete Function.prototype.prototype;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-18-s.js b/test/suite/ch13/13.2/13.2-18-s.js
index c0ac07cc9..2cc2a0e3b 100644
--- a/test/suite/ch13/13.2/13.2-18-s.js
+++ b/test/suite/ch13/13.2/13.2-18-s.js
@@ -1,24 +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.2/13.2-18-s.js
- * @description StrictMode - writing a property named 'arguments' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict';");
- try {
- foo.arguments = 41;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - writing a property named 'arguments' of function
+ objects is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict';");
+ try {
+ foo.arguments = 41;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-19-b-3gs.js b/test/suite/ch13/13.2/13.2-19-b-3gs.js
index cd356070d..78d9c1ee3 100644
--- a/test/suite/ch13/13.2/13.2-19-b-3gs.js
+++ b/test/suite/ch13/13.2/13.2-19-b-3gs.js
@@ -1,15 +1,18 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-19-b-3gs.js
- * @description StrictMode - error is thrown when assign a value to the 'caller' property of a function object
- * @onlyStrict
- * @negative NotEarlyError
- */
-"use strict";
-throw NotEarlyError;
-function _13_2_19_b_3_gs() {}
-_13_2_19_b_3_gs.caller = 1;
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - error is thrown when assign a value to the 'caller'
+ property of a function object
+negative: NotEarlyError
+flags: [onlyStrict]
+---*/
+
+"use strict";
+throw NotEarlyError;
+function _13_2_19_b_3_gs() {}
+_13_2_19_b_3_gs.caller = 1;
diff --git a/test/suite/ch13/13.2/13.2-19-s.js b/test/suite/ch13/13.2/13.2-19-s.js
index 5e8b67e6a..06e9a2e46 100644
--- a/test/suite/ch13/13.2/13.2-19-s.js
+++ b/test/suite/ch13/13.2/13.2-19-s.js
@@ -1,24 +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.2/13.2-19-s.js
- * @description StrictMode - enumerating over a function object looking for 'arguments' fails outside of the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict';");
-
- for (var tempIndex in foo) {
- if (tempIndex === "arguments") {
- return false;
- }
- }
- return true;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'arguments' fails outside of the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict';");
+
+ for (var tempIndex in foo) {
+ if (tempIndex === "arguments") {
+ return false;
+ }
+ }
+ return true;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-2-s.js b/test/suite/ch13/13.2/13.2-2-s.js
index f2bdf6898..800d5b45d 100644
--- a/test/suite/ch13/13.2/13.2-2-s.js
+++ b/test/suite/ch13/13.2/13.2-2-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.2/13.2-2-s.js
- * @description StrictMode - A TypeError is thrown when a strict mode code writes to properties named 'caller' of function instances.
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- var foo = function () {
- }
- foo.caller = 20;
- return false;
- } catch (ex) {
- return ex instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - A TypeError is thrown when a strict mode code writes
+ to properties named 'caller' of function instances.
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ try {
+ var foo = function () {
+ }
+ foo.caller = 20;
+ return false;
+ } catch (ex) {
+ return ex instanceof TypeError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-20-s.js b/test/suite/ch13/13.2/13.2-20-s.js
index 5eee4a321..f4ad42f65 100644
--- a/test/suite/ch13/13.2/13.2-20-s.js
+++ b/test/suite/ch13/13.2/13.2-20-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-20-s.js
- * @description StrictMode - enumerating over a function object looking for 'arguments' fails inside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"arguments\") {return false;}}; return true;");
- return foo();
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'arguments' fails inside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"arguments\") {return false;}}; return true;");
+ return foo();
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-21-s.js b/test/suite/ch13/13.2/13.2-21-s.js
index 42ad83815..e27b478e0 100644
--- a/test/suite/ch13/13.2/13.2-21-s.js
+++ b/test/suite/ch13/13.2/13.2-21-s.js
@@ -1,24 +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.2/13.2-21-s.js
- * @description StrictMode - reading a property named 'caller' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {"use strict";}
- try {
- var temp = foo.caller;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - reading a property named 'caller' of function objects
+ is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {"use strict";}
+ try {
+ var temp = foo.caller;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-22-s.js b/test/suite/ch13/13.2/13.2-22-s.js
index ab901903c..094a8b118 100644
--- a/test/suite/ch13/13.2/13.2-22-s.js
+++ b/test/suite/ch13/13.2/13.2-22-s.js
@@ -1,24 +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.2/13.2-22-s.js
- * @description StrictMode - writing a property named 'caller' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {"use strict";}
- try {
- foo.caller = 41;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - writing a property named 'caller' of function objects
+ is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {"use strict";}
+ try {
+ foo.caller = 41;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-23-s.js b/test/suite/ch13/13.2/13.2-23-s.js
index 0e89b66ae..019770605 100644
--- a/test/suite/ch13/13.2/13.2-23-s.js
+++ b/test/suite/ch13/13.2/13.2-23-s.js
@@ -1,23 +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.2/13.2-23-s.js
- * @description StrictMode - enumerating over a function object looking for 'caller' fails outside of the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {"use strict";}
- for (var tempIndex in foo) {
- if (tempIndex === "caller") {
- return false;
- }
- }
- return true;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'caller' fails outside of the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {"use strict";}
+ for (var tempIndex in foo) {
+ if (tempIndex === "caller") {
+ return false;
+ }
+ }
+ return true;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-24-s.js b/test/suite/ch13/13.2/13.2-24-s.js
index f9008fc56..2ef269683 100644
--- a/test/suite/ch13/13.2/13.2-24-s.js
+++ b/test/suite/ch13/13.2/13.2-24-s.js
@@ -1,26 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-24-s.js
- * @description StrictMode - enumerating over a function object looking for 'caller' fails inside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {
- "use strict";
- for (var tempIndex in this) {
- if (tempIndex==="caller") {
- return false;
- }
- }
- return true;
- }
- return foo();
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'caller' fails inside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {
+ "use strict";
+ for (var tempIndex in this) {
+ if (tempIndex==="caller") {
+ return false;
+ }
+ }
+ return true;
+ }
+ return foo();
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-25-s.js b/test/suite/ch13/13.2/13.2-25-s.js
index b4c650897..27d4b32ad 100644
--- a/test/suite/ch13/13.2/13.2-25-s.js
+++ b/test/suite/ch13/13.2/13.2-25-s.js
@@ -1,24 +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.2/13.2-25-s.js
- * @description StrictMode - reading a property named 'arguments' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {"use strict";}
- try {
- var temp = foo.arguments;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - reading a property named 'arguments' of function
+ objects is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {"use strict";}
+ try {
+ var temp = foo.arguments;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-26-s.js b/test/suite/ch13/13.2/13.2-26-s.js
index 68682ce31..0e4d0a8d6 100644
--- a/test/suite/ch13/13.2/13.2-26-s.js
+++ b/test/suite/ch13/13.2/13.2-26-s.js
@@ -1,24 +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.2/13.2-26-s.js
- * @description StrictMode - writing a property named 'arguments' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {"use strict";}
- try {
- foo.arguments = 41;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - writing a property named 'arguments' of function
+ objects is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {"use strict";}
+ try {
+ foo.arguments = 41;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-27-s.js b/test/suite/ch13/13.2/13.2-27-s.js
index d6177986a..c640ad673 100644
--- a/test/suite/ch13/13.2/13.2-27-s.js
+++ b/test/suite/ch13/13.2/13.2-27-s.js
@@ -1,24 +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.2/13.2-27-s.js
- * @description StrictMode - enumerating over a function object looking for 'arguments' fails outside of the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo () {"use strict";}
-
- for (var tempIndex in foo) {
- if (tempIndex === "arguments") {
- return false;
- }
- }
- return true;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'arguments' fails outside of the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo () {"use strict";}
+
+ for (var tempIndex in foo) {
+ if (tempIndex === "arguments") {
+ return false;
+ }
+ }
+ return true;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-28-s.js b/test/suite/ch13/13.2/13.2-28-s.js
index dd9dad3ee..955938503 100644
--- a/test/suite/ch13/13.2/13.2-28-s.js
+++ b/test/suite/ch13/13.2/13.2-28-s.js
@@ -1,26 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-28-s.js
- * @description StrictMode - enumerating over a function object looking for 'arguments' fails inside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo() {
- "use strict";
- for (var tempIndex in this) {
- if (tempIndex==="arguments") {
- return false;
- }
- }
- return true;
- }
- return foo();
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'arguments' fails inside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo() {
+ "use strict";
+ for (var tempIndex in this) {
+ if (tempIndex==="arguments") {
+ return false;
+ }
+ }
+ return true;
+ }
+ return foo();
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-29-s.js b/test/suite/ch13/13.2/13.2-29-s.js
index 8f2b59d39..7ddc4a82b 100644
--- a/test/suite/ch13/13.2/13.2-29-s.js
+++ b/test/suite/ch13/13.2/13.2-29-s.js
@@ -1,19 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-29-s.js
- * @description StrictMode - property named 'caller' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo() {"use strict";}
- return ! Object.getOwnPropertyDescriptor(foo,
- "caller").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'caller' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo() {"use strict";}
+ return ! Object.getOwnPropertyDescriptor(foo,
+ "caller").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-3-s.js b/test/suite/ch13/13.2/13.2-3-s.js
index 642f417c7..bd49fe9ad 100644
--- a/test/suite/ch13/13.2/13.2-3-s.js
+++ b/test/suite/ch13/13.2/13.2-3-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.2/13.2-3-s.js
- * @description StrictMode - Writing or reading from a property named 'arguments' of function objects is allowed under both strict and normal modes.
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
-
- var foo = function () {
- this.arguments = 12;
- }
- var obj = new foo();
- return obj.arguments === 12;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - Writing or reading from a property named 'arguments'
+ of function objects is allowed under both strict and normal modes.
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+
+ var foo = function () {
+ this.arguments = 12;
+ }
+ var obj = new foo();
+ return obj.arguments === 12;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-30-s.js b/test/suite/ch13/13.2/13.2-30-s.js
index fd531f4c5..2103f5ec2 100644
--- a/test/suite/ch13/13.2/13.2-30-s.js
+++ b/test/suite/ch13/13.2/13.2-30-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-30-s.js
- * @description StrictMode - property named 'caller' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- return ! Object.getOwnPropertyDescriptor(Function("'use strict';"),
- "caller").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'caller' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ return ! Object.getOwnPropertyDescriptor(Function("'use strict';"),
+ "caller").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-31-s.js b/test/suite/ch13/13.2/13.2-31-s.js
index e5693beb9..48da5a92b 100644
--- a/test/suite/ch13/13.2/13.2-31-s.js
+++ b/test/suite/ch13/13.2/13.2-31-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-31-s.js
- * @description StrictMode - property named 'caller' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- return ! Object.getOwnPropertyDescriptor(new Function("'use strict';"),
- "caller").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'caller' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ return ! Object.getOwnPropertyDescriptor(new Function("'use strict';"),
+ "caller").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-32-s.js b/test/suite/ch13/13.2/13.2-32-s.js
index cc0c1f9ca..929d2bba3 100644
--- a/test/suite/ch13/13.2/13.2-32-s.js
+++ b/test/suite/ch13/13.2/13.2-32-s.js
@@ -1,19 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-32-s.js
- * @description StrictMode - property named 'caller' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var funcExpr = function () { "use strict";};
- return ! Object.getOwnPropertyDescriptor(funcExpr,
- "caller").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'caller' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var funcExpr = function () { "use strict";};
+ return ! Object.getOwnPropertyDescriptor(funcExpr,
+ "caller").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-33-s.js b/test/suite/ch13/13.2/13.2-33-s.js
index 602a0d808..0bc11d980 100644
--- a/test/suite/ch13/13.2/13.2-33-s.js
+++ b/test/suite/ch13/13.2/13.2-33-s.js
@@ -1,19 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-33-s.js
- * @description StrictMode - property named 'arguments' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- function foo() {"use strict";}
- return ! Object.getOwnPropertyDescriptor(foo,
- "arguments").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'arguments' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function foo() {"use strict";}
+ return ! Object.getOwnPropertyDescriptor(foo,
+ "arguments").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-34-s.js b/test/suite/ch13/13.2/13.2-34-s.js
index 81f9fd0d7..23a9d2af2 100644
--- a/test/suite/ch13/13.2/13.2-34-s.js
+++ b/test/suite/ch13/13.2/13.2-34-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-34-s.js
- * @description StrictMode - property named 'arguments' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- return ! Object.getOwnPropertyDescriptor(Function("'use strict';"),
- "arguments").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'arguments' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ return ! Object.getOwnPropertyDescriptor(Function("'use strict';"),
+ "arguments").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-35-s.js b/test/suite/ch13/13.2/13.2-35-s.js
index e6031df2d..c1da63eaf 100644
--- a/test/suite/ch13/13.2/13.2-35-s.js
+++ b/test/suite/ch13/13.2/13.2-35-s.js
@@ -1,18 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-35-s.js
- * @description StrictMode - property named 'arguments' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- return ! Object.getOwnPropertyDescriptor(new Function("'use strict';"),
- "arguments").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'arguments' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ return ! Object.getOwnPropertyDescriptor(new Function("'use strict';"),
+ "arguments").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-36-s.js b/test/suite/ch13/13.2/13.2-36-s.js
index 4e958dee0..0b13df082 100644
--- a/test/suite/ch13/13.2/13.2-36-s.js
+++ b/test/suite/ch13/13.2/13.2-36-s.js
@@ -1,19 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-36-s.js
- * @description StrictMode - property named 'arguments' of function objects is not configurable
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var funcExpr = function () { "use strict";};
- return ! Object.getOwnPropertyDescriptor(funcExpr,
- "arguments").configurable;
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - property named 'arguments' of function objects is not
+ configurable
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var funcExpr = function () { "use strict";};
+ return ! Object.getOwnPropertyDescriptor(funcExpr,
+ "arguments").configurable;
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-4-s.js b/test/suite/ch13/13.2/13.2-4-s.js
index 82981f467..ddc05e571 100644
--- a/test/suite/ch13/13.2/13.2-4-s.js
+++ b/test/suite/ch13/13.2/13.2-4-s.js
@@ -1,24 +1,26 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-4-s.js
- * @description StrictMode - A TypeError is thrown when a code in strict mode tries to write to 'arguments' of function instances.
- * @onlyStrict
- */
-
-
-function testcase() {
- "use strict";
- try {
- var foo = function () {
- }
- foo.arguments = 20;
- return false;
- } catch (ex) {
- return ex instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - A TypeError is thrown when a code in strict mode
+ tries to write to 'arguments' of function instances.
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ "use strict";
+ try {
+ var foo = function () {
+ }
+ foo.arguments = 20;
+ return false;
+ } catch (ex) {
+ return ex instanceof TypeError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-5-s.js b/test/suite/ch13/13.2/13.2-5-s.js
index 2512e5ef0..8a705158a 100644
--- a/test/suite/ch13/13.2/13.2-5-s.js
+++ b/test/suite/ch13/13.2/13.2-5-s.js
@@ -1,23 +1,25 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-5-s.js
- * @description StrictMode - reading a property named 'caller' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-function testcase() {
- var foo = new Function("'use strict';");
- try {
- var temp = foo.caller;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - reading a property named 'caller' of function objects
+ is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict';");
+ try {
+ var temp = foo.caller;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-6-s.js b/test/suite/ch13/13.2/13.2-6-s.js
index 5b6de1de9..c5848058a 100644
--- a/test/suite/ch13/13.2/13.2-6-s.js
+++ b/test/suite/ch13/13.2/13.2-6-s.js
@@ -1,24 +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.2/13.2-6-s.js
- * @description StrictMode - writing a property named 'caller' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = new Function("'use strict';");
- try {
- foo.caller = 41;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - writing a property named 'caller' of function objects
+ is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict';");
+ try {
+ foo.caller = 41;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-7-s.js b/test/suite/ch13/13.2/13.2-7-s.js
index 2b5fbb185..b50034aca 100644
--- a/test/suite/ch13/13.2/13.2-7-s.js
+++ b/test/suite/ch13/13.2/13.2-7-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.2/13.2-7-s.js
- * @description StrictMode - enumerating over a function object looking for 'caller' fails outside of the function
- * @onlyStrict
- */
-
-
-function testcase() {
- var foo = new Function("'use strict';");
-
- for (var tempIndex in foo) {
- if (tempIndex === "caller") {
- return false;
- }
- }
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - enumerating over a function object looking for
+ 'caller' fails outside of the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict';");
+
+ for (var tempIndex in foo) {
+ if (tempIndex === "caller") {
+ return false;
+ }
+ }
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-8-s.js b/test/suite/ch13/13.2/13.2-8-s.js
index 42bcc07d9..62b560ce6 100644
--- a/test/suite/ch13/13.2/13.2-8-s.js
+++ b/test/suite/ch13/13.2/13.2-8-s.js
@@ -1,17 +1,19 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch13/13.2/13.2-8-s.js
- * @description StrictMode - enumerating over a function object looking for 'caller' fails inside the function
- * @onlyStrict
- */
-
-
-function testcase() {
- var foo = new Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"caller\") {return false;}}; return true;");
- return foo();
- }
-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 - enumerating over a function object looking for
+ 'caller' fails inside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = new Function("'use strict'; for (var tempIndex in this) {if (tempIndex===\"caller\") {return false;}}; return true;");
+ return foo();
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/13.2-9-s.js b/test/suite/ch13/13.2/13.2-9-s.js
index fac6285e6..7ae060575 100644
--- a/test/suite/ch13/13.2/13.2-9-s.js
+++ b/test/suite/ch13/13.2/13.2-9-s.js
@@ -1,24 +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.2/13.2-9-s.js
- * @description StrictMode - reading a property named 'caller' of function objects is not allowed outside the function
- * @onlyStrict
- */
-
-
-
-function testcase() {
- var foo = Function("'use strict';");
- try {
- var temp = foo.caller;
- return false;
- }
- catch (e) {
- return e instanceof TypeError;
- }
-}
-runTestCase(testcase); \ No newline at end of file
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ StrictMode - reading a property named 'caller' of function objects
+ is not allowed outside the function
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var foo = Function("'use strict';");
+ try {
+ var temp = foo.caller;
+ return false;
+ }
+ catch (e) {
+ return e instanceof TypeError;
+ }
+}
+runTestCase(testcase);
diff --git a/test/suite/ch13/13.2/S13.2.1_A1_T1.js b/test/suite/ch13/13.2/S13.2.1_A1_T1.js
index 1295b6a48..f11e55875 100644
--- a/test/suite/ch13/13.2/S13.2.1_A1_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A1_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The depth of nested function calls reaches 32
- *
- * @path ch13/13.2/S13.2.1_A1_T1.js
- * @description Creating function calls 32 elements depth
- */
+/*---
+info: The depth of nested function calls reaches 32
+description: Creating function calls 32 elements depth
+---*/
(function(){
(function(){
@@ -70,5 +68,4 @@
})()
})()
})()
-})()
-
+})()
diff --git a/test/suite/ch13/13.2/S13.2.1_A4_T1.js b/test/suite/ch13/13.2/S13.2.1_A4_T1.js
index a2bce3580..2d4189ed5 100644
--- a/test/suite/ch13/13.2/S13.2.1_A4_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A4_T1.js
@@ -1,13 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Objects as arguments are passed by reference
- *
- * @path ch13/13.2/S13.2.1_A4_T1.js
- * @description Adding new number property to a function argument within the function body,
- * where explicit argument is an object defined with "var __obj={}"
- */
+/*---
+info: Objects as arguments are passed by reference
+description: >
+ Adding new number property to a function argument within the
+ function body, where explicit argument is an object defined with
+ "var __obj={}"
+---*/
function __func(__arg){
__arg.foo=7;
@@ -24,4 +24,3 @@ if (__obj.foo !== 7) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A4_T2.js b/test/suite/ch13/13.2/S13.2.1_A4_T2.js
index 682f57d08..8881c5311 100644
--- a/test/suite/ch13/13.2/S13.2.1_A4_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A4_T2.js
@@ -1,13 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Objects as arguments are passed by reference
- *
- * @path ch13/13.2/S13.2.1_A4_T2.js
- * @description Adding new string property to a function argument within the function body,
- * where explicit argument is an object defined with "__obj={}"
- */
+/*---
+info: Objects as arguments are passed by reference
+description: >
+ Adding new string property to a function argument within the
+ function body, where explicit argument is an object defined with
+ "__obj={}"
+---*/
function __func(__arg){
__arg.foo="whiskey gogo";
@@ -24,4 +24,3 @@ if (__obj.foo !== "whiskey gogo") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A4_T3.js b/test/suite/ch13/13.2/S13.2.1_A4_T3.js
index 00ee68b10..6cd4c12a4 100644
--- a/test/suite/ch13/13.2/S13.2.1_A4_T3.js
+++ b/test/suite/ch13/13.2/S13.2.1_A4_T3.js
@@ -1,13 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Objects as arguments are passed by reference
- *
- * @path ch13/13.2/S13.2.1_A4_T3.js
- * @description Adding new number property to a function argument within the function body,
- * where array element "arguments[0]" is an object defined with "__obj={}"
- */
+/*---
+info: Objects as arguments are passed by reference
+description: >
+ Adding new number property to a function argument within the
+ function body, where array element "arguments[0]" is an object
+ defined with "__obj={}"
+---*/
function __func(){
arguments[0]["PI"]=3.14;
@@ -24,4 +24,3 @@ if (__obj.PI !== 3.14) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A4_T4.js b/test/suite/ch13/13.2/S13.2.1_A4_T4.js
index a9a026121..16744343e 100644
--- a/test/suite/ch13/13.2/S13.2.1_A4_T4.js
+++ b/test/suite/ch13/13.2/S13.2.1_A4_T4.js
@@ -1,13 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Objects as arguments are passed by reference
- *
- * @path ch13/13.2/S13.2.1_A4_T4.js
- * @description Adding new number property to a function argument within the function body,
- * where array element "arguments[0]" is an object defined with "var __obj={}"
- */
+/*---
+info: Objects as arguments are passed by reference
+description: >
+ Adding new number property to a function argument within the
+ function body, where array element "arguments[0]" is an object
+ defined with "var __obj={}"
+---*/
function __func(){
arguments[0]["E"]=2.74;
@@ -24,4 +24,3 @@ if (__obj.E !== 2.74) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A5_T1.js b/test/suite/ch13/13.2/S13.2.1_A5_T1.js
index 81909da90..b0a1fac91 100644
--- a/test/suite/ch13/13.2/S13.2.1_A5_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A5_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Closures are admitted
- *
- * @path ch13/13.2/S13.2.1_A5_T1.js
- * @description Sorting with closure
- */
+/*---
+info: Closures are admitted
+description: Sorting with closure
+---*/
var __arr = [4,3,2,1,4,3,2,1,4,3,2,1];
//Sort uses closure
@@ -26,5 +24,4 @@ if (__arr.toString() !== [4,4,4,3,3,3,2,2,2,1,1,1].toString()) {
}
//
-//////////////////////////////////////////////////////////////////////////////
-
+//////////////////////////////////////////////////////////////////////////////
diff --git a/test/suite/ch13/13.2/S13.2.1_A5_T2.js b/test/suite/ch13/13.2/S13.2.1_A5_T2.js
index e48402cd6..00d2907bd 100644
--- a/test/suite/ch13/13.2/S13.2.1_A5_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A5_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Closures are admitted
- *
- * @path ch13/13.2/S13.2.1_A5_T2.js
- * @description Returning a function that approximates the derivative of f
- * using an interval of dx, which should be appropriately small
- */
+/*---
+info: Closures are admitted
+description: >
+ Returning a function that approximates the derivative of f using
+ an interval of dx, which should be appropriately small
+---*/
// Return a function that approximates the derivative of f
// using an interval of dx, which should be appropriately small.
@@ -24,4 +23,3 @@ if (Math.abs(derivative(Math.sin, 0.0001)(0) - derivative(Math.sin, 0.0001)(2*Ma
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A6_T1.js b/test/suite/ch13/13.2/S13.2.1_A6_T1.js
index a1d360b34..ba430f274 100644
--- a/test/suite/ch13/13.2/S13.2.1_A6_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A6_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Primitive types are passed by value
- *
- * @path ch13/13.2/S13.2.1_A6_T1.js
- * @description Declaring a function with "function __func(arg1, arg2)"
- */
+/*---
+info: Primitive types are passed by value
+description: Declaring a function with "function __func(arg1, arg2)"
+---*/
function __func(arg1, arg2){
arg1++;
@@ -28,4 +26,3 @@ if (x!==1 || y!==2 || a!=="AB" || b!=="SAM") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A6_T2.js b/test/suite/ch13/13.2/S13.2.1_A6_T2.js
index f92bafaf2..36248a729 100644
--- a/test/suite/ch13/13.2/S13.2.1_A6_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A6_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Primitive types are passed by value
- *
- * @path ch13/13.2/S13.2.1_A6_T2.js
- * @description Declaring a function with "__func = function(arg1, arg2)"
- */
+/*---
+info: Primitive types are passed by value
+description: Declaring a function with "__func = function(arg1, arg2)"
+---*/
__func = function(arg1, arg2){
arg1++;
@@ -28,4 +26,3 @@ if (x!==1 || y!==2 || a!=="AB" || b!=="SAM") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A7_T1.js b/test/suite/ch13/13.2/S13.2.1_A7_T1.js
index 4e46fcafe..db095b177 100644
--- a/test/suite/ch13/13.2/S13.2.1_A7_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A7_T1.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object F is called, the following steps are taken:
- * 2. Evaluate F's FunctionBody;
- * if Result.type is returned then Result.value is returned too
- *
- * @path ch13/13.2/S13.2.1_A7_T1.js
- * @description Returning null. Declaring a function with "function __func()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object F is called, the following steps are taken:
+ 2. Evaluate F's FunctionBody;
+ if Result.type is returned then Result.value is returned too
+description: Returning null. Declaring a function with "function __func()"
+---*/
function __func(){
var x = null;
@@ -24,4 +23,3 @@ try{
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A7_T2.js b/test/suite/ch13/13.2/S13.2.1_A7_T2.js
index ae4fbb406..3328bc55b 100644
--- a/test/suite/ch13/13.2/S13.2.1_A7_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A7_T2.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object F is called, the following steps are taken:
- * 2. Evaluate F's FunctionBody;
- * if Result.type is returned then Result.value is returned too
- *
- * @path ch13/13.2/S13.2.1_A7_T2.js
- * @description Returning null. Declaring a function with "var __func = function ()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object F is called, the following steps are taken:
+ 2. Evaluate F's FunctionBody;
+ if Result.type is returned then Result.value is returned too
+description: >
+ Returning null. Declaring a function with "var __func = function
+ ()"
+---*/
var __func = function (){
var x = null;
@@ -24,4 +25,3 @@ try{
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A7_T3.js b/test/suite/ch13/13.2/S13.2.1_A7_T3.js
index efbb8a04d..5cd67c4dc 100644
--- a/test/suite/ch13/13.2/S13.2.1_A7_T3.js
+++ b/test/suite/ch13/13.2/S13.2.1_A7_T3.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object F is called, the following steps are taken:
- * 2. Evaluate F's FunctionBody;
- * if Result.type is returned then Result.value is returned too
- *
- * @path ch13/13.2/S13.2.1_A7_T3.js
- * @description Returning number. Declaring a function with "function __func()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object F is called, the following steps are taken:
+ 2. Evaluate F's FunctionBody;
+ if Result.type is returned then Result.value is returned too
+description: Returning number. Declaring a function with "function __func()"
+includes: [Test262Error.js]
+---*/
function __func(){
x = 1;
@@ -51,5 +51,3 @@ if (x !== 1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A7_T4.js b/test/suite/ch13/13.2/S13.2.1_A7_T4.js
index 7461324ed..13632f0f3 100644
--- a/test/suite/ch13/13.2/S13.2.1_A7_T4.js
+++ b/test/suite/ch13/13.2/S13.2.1_A7_T4.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object F is called, the following steps are taken:
- * 2. Evaluate F's FunctionBody;
- * if Result.type is returned then Result.value is returned too
- *
- * @path ch13/13.2/S13.2.1_A7_T4.js
- * @description Returning boolean. Declaring a function with "function __func()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object F is called, the following steps are taken:
+ 2. Evaluate F's FunctionBody;
+ if Result.type is returned then Result.value is returned too
+description: Returning boolean. Declaring a function with "function __func()"
+includes: [Test262Error.js]
+---*/
function __func(){
var x = true;
@@ -19,8 +19,8 @@ function __func(){
//CHECK#
try {
x=x;
- $ERROR('#0: "x=x" lead to throwing exception');
-} catch (e) {
+ $ERROR('#0: "x=x" lead to throwing exception');
+} catch (e) {
if (e instanceof Test262Error) throw e;
}
//
@@ -48,11 +48,9 @@ if (!(__x)) {
//CHECK#3
try {
x=x;
- $ERROR('#3: "x=x" lead to throwing exception');
-} catch (e) {
+ $ERROR('#3: "x=x" lead to throwing exception');
+} catch (e) {
if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A8_T1.js b/test/suite/ch13/13.2/S13.2.1_A8_T1.js
index 2be9cb728..a6fb01b32 100644
--- a/test/suite/ch13/13.2/S13.2.1_A8_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A8_T1.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object F is called, the following steps are taken:
- * 2. Evaluate F's FunctionBody;
- * if Result.type is thrown then Result.value is thrown too
- *
- * @path ch13/13.2/S13.2.1_A8_T1.js
- * @description Throwing an exception within a function body. Declaring function with "function __func()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object F is called, the following steps are taken:
+ 2. Evaluate F's FunctionBody;
+ if Result.type is thrown then Result.value is thrown too
+description: >
+ Throwing an exception within a function body. Declaring function
+ with "function __func()"
+---*/
function __func(){
var x = 1;
@@ -24,4 +25,3 @@ try{
$ERROR('#1: Exception === "Catch Me If You Can". Actual: exception ==='+e);
}
}
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A8_T2.js b/test/suite/ch13/13.2/S13.2.1_A8_T2.js
index c07582b28..831e678dc 100644
--- a/test/suite/ch13/13.2/S13.2.1_A8_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A8_T2.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object F is called, the following steps are taken:
- * 2. Evaluate F's FunctionBody;
- * if Result.type is thrown then Result.value is thrown too
- *
- * @path ch13/13.2/S13.2.1_A8_T2.js
- * @description Throwing an exception within a function body. Declaring function with "var __func = function (message)"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object F is called, the following steps are taken:
+ 2. Evaluate F's FunctionBody;
+ if Result.type is thrown then Result.value is thrown too
+description: >
+ Throwing an exception within a function body. Declaring function
+ with "var __func = function (message)"
+---*/
var CATCH_ME_IF_YOU_CAN = true;
@@ -26,4 +27,3 @@ try{
$ERROR('#1: Exception === true. Actual: exception ==='+e);
}
}
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A9.1_T1.js b/test/suite/ch13/13.2/S13.2.1_A9.1_T1.js
index 9b1dd7382..11b0f0c45 100644
--- a/test/suite/ch13/13.2/S13.2.1_A9.1_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A9.1_T1.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object is called,
- * the body is evaluated and if evaluation result has type "normal", then "undefined" is returned
- *
- * @path ch13/13.2/S13.2.1_A9.1_T1.js
- * @description Declaring a function with "function __func()" and no "return" in the function body
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object is called,
+ the body is evaluated and if evaluation result has type "normal", then "undefined" is returned
+description: >
+ Declaring a function with "function __func()" and no "return" in
+ the function body
+---*/
var x;
@@ -30,4 +31,3 @@ if (!x) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A9.1_T2.js b/test/suite/ch13/13.2/S13.2.1_A9.1_T2.js
index 90057b04b..25cfbd5f0 100644
--- a/test/suite/ch13/13.2/S13.2.1_A9.1_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A9.1_T2.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object is called,
- * the body is evaluated and if evaluation result has type "normal", then "undefined" is returned
- *
- * @path ch13/13.2/S13.2.1_A9.1_T2.js
- * @description Declaring a function with "var __func = function()" and no "return" in the function body
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object is called,
+ the body is evaluated and if evaluation result has type "normal", then "undefined" is returned
+description: >
+ Declaring a function with "var __func = function()" and no
+ "return" in the function body
+---*/
var x;
@@ -30,4 +31,3 @@ if (!x) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A9_T1.js b/test/suite/ch13/13.2/S13.2.1_A9_T1.js
index 6332ef34e..1cecf4992 100644
--- a/test/suite/ch13/13.2/S13.2.1_A9_T1.js
+++ b/test/suite/ch13/13.2/S13.2.1_A9_T1.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object is called,
- * the body is evaluated and if evaluation result has type "return" its value is not defined, then "undefined" is returned
- *
- * @path ch13/13.2/S13.2.1_A9_T1.js
- * @description Using "return" with no expression. Declaring a function with "function __func()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object is called,
+ the body is evaluated and if evaluation result has type "return" its value is not defined, then "undefined" is returned
+description: >
+ Using "return" with no expression. Declaring a function with
+ "function __func()"
+---*/
var x;
@@ -31,4 +32,3 @@ if (x!==1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.1_A9_T2.js b/test/suite/ch13/13.2/S13.2.1_A9_T2.js
index 75be8a19a..f40a79dd6 100644
--- a/test/suite/ch13/13.2/S13.2.1_A9_T2.js
+++ b/test/suite/ch13/13.2/S13.2.1_A9_T2.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Call]] property for a Function object is called,
- * the body is evaluated and if evaluation result has type "return" its value is not defined, then "undefined" is returned
- *
- * @path ch13/13.2/S13.2.1_A9_T2.js
- * @description Using "return" with no expression. Declaring a function with "var __func = function()"
- */
+/*---
+info: >
+ When the [[Call]] property for a Function object is called,
+ the body is evaluated and if evaluation result has type "return" its value is not defined, then "undefined" is returned
+description: >
+ Using "return" with no expression. Declaring a function with "var
+ __func = function()"
+---*/
var x;
@@ -31,4 +32,3 @@ if (x!==1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A10.js b/test/suite/ch13/13.2/S13.2.2_A10.js
index 25ba9d58d..a4ea620d3 100644
--- a/test/suite/ch13/13.2/S13.2.2_A10.js
+++ b/test/suite/ch13/13.2/S13.2.2_A10.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Calling a function as a constructor is possible as long as this.any_Function is declared
- *
- * @path ch13/13.2/S13.2.2_A10.js
- * @description Calling a function as a constructor after it has been declared
- */
+/*---
+info: >
+ Calling a function as a constructor is possible as long as
+ this.any_Function is declared
+description: Calling a function as a constructor after it has been declared
+---*/
function FACTORY(){
this.id = 0;
@@ -35,4 +35,3 @@ if (obj.id !== 5) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A11.js b/test/suite/ch13/13.2/S13.2.2_A11.js
index 13f7f4e9b..d4c3d2b1d 100644
--- a/test/suite/ch13/13.2/S13.2.2_A11.js
+++ b/test/suite/ch13/13.2/S13.2.2_A11.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Calling a function as a constructor is possible as long as this.any_Function is declared and called
- *
- * @path ch13/13.2/S13.2.2_A11.js
- * @description Calling a function as a constructor after it has been declared with "function func()"
- */
+/*---
+info: >
+ Calling a function as a constructor is possible as long as
+ this.any_Function is declared and called
+description: >
+ Calling a function as a constructor after it has been declared
+ with "function func()"
+includes: [Test262Error.js]
+---*/
function FACTORY(){
this.id = 0;
@@ -22,11 +25,9 @@ function FACTORY(){
//CHECK#1
try {
var obj = new FACTORY();
- $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
-} catch (e) {
+ $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
+} catch (e) {
if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A12.js b/test/suite/ch13/13.2/S13.2.2_A12.js
index 52d4a95b6..d5570a200 100644
--- a/test/suite/ch13/13.2/S13.2.2_A12.js
+++ b/test/suite/ch13/13.2/S13.2.2_A12.js
@@ -1,12 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Calling a function as a constructor is possible as long as this.any_Function is declared and called
- *
- * @path ch13/13.2/S13.2.2_A12.js
- * @description Calling a function as a constructor after it has been declared with "function func()"
- */
+/*---
+info: >
+ Calling a function as a constructor is possible as long as
+ this.any_Function is declared and called
+description: >
+ Calling a function as a constructor after it has been declared
+ with "function func()"
+---*/
function FACTORY(){
this.id = 0;
@@ -35,4 +37,3 @@ if (obj.id !== "id_string") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A13.js b/test/suite/ch13/13.2/S13.2.2_A13.js
index 79801ac9e..18919e13e 100644
--- a/test/suite/ch13/13.2/S13.2.2_A13.js
+++ b/test/suite/ch13/13.2/S13.2.2_A13.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Calling a function as a constructor is inadmissible as long as this.any_Function is declared by eval and called
- *
- * @path ch13/13.2/S13.2.2_A13.js
- * @description Calling a function as a constructor after it has been declared by eval
- */
+/*---
+info: >
+ Calling a function as a constructor is inadmissible as long as
+ this.any_Function is declared by eval and called
+description: >
+ Calling a function as a constructor after it has been declared by
+ eval
+includes: [Test262Error.js]
+---*/
function FACTORY(){
this.id = 0;
@@ -20,10 +23,9 @@ function FACTORY(){
//CHECK#1
try {
var obj = new FACTORY();
- $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
-} catch (e) {
+ $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
+} catch (e) {
if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A14.js b/test/suite/ch13/13.2/S13.2.2_A14.js
index 2db1005bc..6b233d56d 100644
--- a/test/suite/ch13/13.2/S13.2.2_A14.js
+++ b/test/suite/ch13/13.2/S13.2.2_A14.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Calling a function as a constructor is inadmissible as long as this.any_Function is declared by eval and called
- *
- * @path ch13/13.2/S13.2.2_A14.js
- * @description Calling a function as a constructor after it has been declared by eval
- * @noStrict
- */
+/*---
+info: >
+ Calling a function as a constructor is inadmissible as long as
+ this.any_Function is declared by eval and called
+description: >
+ Calling a function as a constructor after it has been declared by
+ eval
+flags: [noStrict]
+---*/
function FACTORY(){
this.id = 0;
@@ -26,4 +28,3 @@ try {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A15_T1.js b/test/suite/ch13/13.2/S13.2.2_A15_T1.js
index 6548618eb..958dd93e3 100644
--- a/test/suite/ch13/13.2/S13.2.2_A15_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A15_T1.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called,
- * and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
- *
- * @path ch13/13.2/S13.2.2_A15_T1.js
- * @description Function declared at the end of the program and "obj" property is declared with "var obj = {}"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called,
+ and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
+description: >
+ Function declared at the end of the program and "obj" property is
+ declared with "var obj = {}"
+---*/
var __obj = new __FACTORY();
@@ -42,4 +43,3 @@ function __FACTORY(){
obj.slot = this;
return obj;
}
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A15_T2.js b/test/suite/ch13/13.2/S13.2.2_A15_T2.js
index 007474b4b..9c9cc7765 100644
--- a/test/suite/ch13/13.2/S13.2.2_A15_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A15_T2.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called,
- * and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
- *
- * @path ch13/13.2/S13.2.2_A15_T2.js
- * @description Function declared at the end of the program and "obj" property is declared with "obj = {}"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called,
+ and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
+description: >
+ Function declared at the end of the program and "obj" property is
+ declared with "obj = {}"
+---*/
var __obj = new __FACTORY();
@@ -42,4 +43,3 @@ function __FACTORY(){
obj.slot = this;
return obj;
}
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A15_T3.js b/test/suite/ch13/13.2/S13.2.2_A15_T3.js
index c448df552..a4ada72b1 100644
--- a/test/suite/ch13/13.2/S13.2.2_A15_T3.js
+++ b/test/suite/ch13/13.2/S13.2.2_A15_T3.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called,
- * and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
- *
- * @path ch13/13.2/S13.2.2_A15_T3.js
- * @description Function declared at the end of the program and "obj" property is declared with "var obj = {}"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called,
+ and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
+description: >
+ Function declared at the end of the program and "obj" property is
+ declared with "var obj = {}"
+---*/
__FACTORY = function (){
this.prop = 1;
@@ -42,4 +43,3 @@ if (__obj.slot.prop !==1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A15_T4.js b/test/suite/ch13/13.2/S13.2.2_A15_T4.js
index 5667b9b52..9267fff05 100644
--- a/test/suite/ch13/13.2/S13.2.2_A15_T4.js
+++ b/test/suite/ch13/13.2/S13.2.2_A15_T4.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called,
- * and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
- *
- * @path ch13/13.2/S13.2.2_A15_T4.js
- * @description Function declared at the end of the program and "obj" property is declared with "obj = {}"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called,
+ and the object created in the function is returned, the object (declared with "this" within a function) will be strong and healthy
+description: >
+ Function declared at the end of the program and "obj" property is
+ declared with "obj = {}"
+---*/
__FACTORY = function(){
this.prop = 1;
@@ -42,5 +43,3 @@ if (__obj.slot.prop !==1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A16_T1.js b/test/suite/ch13/13.2/S13.2.2_A16_T1.js
index ea40cfb09..c6c8ffef3 100644
--- a/test/suite/ch13/13.2/S13.2.2_A16_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A16_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionExpression within a new statement is admitted
- *
- * @path ch13/13.2/S13.2.2_A16_T1.js
- * @description Using "is __obj = new function __func(){this.prop=1;}" as FunctionExpression
- */
+/*---
+info: FunctionExpression within a new statement is admitted
+description: >
+ Using "is __obj = new function __func(){this.prop=1;}" as
+ FunctionExpression
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -33,4 +33,3 @@ if (typeof __func !== "undefined") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A16_T2.js b/test/suite/ch13/13.2/S13.2.2_A16_T2.js
index 2af36ba44..1716a1d4d 100644
--- a/test/suite/ch13/13.2/S13.2.2_A16_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A16_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionExpression within a new statement is admitted
- *
- * @path ch13/13.2/S13.2.2_A16_T2.js
- * @description Using "var __obj = new function __func(arg){this.prop=arg;}(5)" as FunctionExpression
- */
+/*---
+info: FunctionExpression within a new statement is admitted
+description: >
+ Using "var __obj = new function __func(arg){this.prop=arg;}(5)" as
+ FunctionExpression
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -33,4 +33,3 @@ if (typeof __func !== "undefined") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A16_T3.js b/test/suite/ch13/13.2/S13.2.2_A16_T3.js
index 8cff917f6..25c585bdb 100644
--- a/test/suite/ch13/13.2/S13.2.2_A16_T3.js
+++ b/test/suite/ch13/13.2/S13.2.2_A16_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionExpression within a new statement is admitted
- *
- * @path ch13/13.2/S13.2.2_A16_T3.js
- * @description Using "is __obj = new function __func(arg){this.prop=arg; return {feat: ++arg}}(5)" as FunctionExpression
- */
+/*---
+info: FunctionExpression within a new statement is admitted
+description: >
+ Using "is __obj = new function __func(arg){this.prop=arg; return
+ {feat: ++arg}}(5)" as FunctionExpression
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
@@ -41,4 +41,3 @@ if (typeof __func !== "undefined") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A17_T2.js b/test/suite/ch13/13.2/S13.2.2_A17_T2.js
index 105b762d7..a85e83daa 100644
--- a/test/suite/ch13/13.2/S13.2.2_A17_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A17_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionExpression containing "with" statement is admitted
- *
- * @path ch13/13.2/S13.2.2_A17_T2.js
- * @description Throwing an exception within "with" statement
- */
+/*---
+info: FunctionExpression containing "with" statement is admitted
+description: Throwing an exception within "with" statement
+---*/
this.p1="alert";
@@ -68,5 +66,3 @@ if (resukt !== "alert") {
//////////////////////////////////////////////////////////////////////////////
var resukt;
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A17_T3.js b/test/suite/ch13/13.2/S13.2.2_A17_T3.js
index 8d8eba5bd..b678fc4f0 100644
--- a/test/suite/ch13/13.2/S13.2.2_A17_T3.js
+++ b/test/suite/ch13/13.2/S13.2.2_A17_T3.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * FunctionExpression containing "with" statement is admitted
- *
- * @path ch13/13.2/S13.2.2_A17_T3.js
- * @description In the check 4 we populate field getRight in __obj object since var getRight declaration adds variable to function scope
- * but getRight in statement resolves within with(__obj) scope and searchs getRight in __obj first
- */
+/*---
+info: FunctionExpression containing "with" statement is admitted
+description: >
+ In the check 4 we populate field getRight in __obj object since
+ var getRight declaration adds variable to function scope but
+ getRight in statement resolves within with(__obj) scope and
+ searchs getRight in __obj first
+---*/
p1="alert";
@@ -64,5 +65,3 @@ if (resukt !== "w1") {
//////////////////////////////////////////////////////////////////////////////
var resukt;
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A18_T1.js b/test/suite/ch13/13.2/S13.2.2_A18_T1.js
index 327f816dd..f50c93178 100644
--- a/test/suite/ch13/13.2/S13.2.2_A18_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A18_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Using arguments object within a "with" Expression that is nested in a function is admitted
- *
- * @path ch13/13.2/S13.2.2_A18_T1.js
- * @description Object is declared with "var __obj={callee:"a"}"
- */
+/*---
+info: >
+ Using arguments object within a "with" Expression that is nested in a
+ function is admitted
+description: "Object is declared with \"var __obj={callee:\"a\"}\""
+---*/
var callee=0, b;
@@ -51,4 +51,3 @@ if (!(this.b)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A18_T2.js b/test/suite/ch13/13.2/S13.2.2_A18_T2.js
index d586ca5f9..f60a03b2d 100644
--- a/test/suite/ch13/13.2/S13.2.2_A18_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A18_T2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Using arguments object within a "with" Expression that is nested in a function is admitted
- *
- * @path ch13/13.2/S13.2.2_A18_T2.js
- * @description Object is declared with "__obj={callee:"a"}"
- */
+/*---
+info: >
+ Using arguments object within a "with" Expression that is nested in a
+ function is admitted
+description: "Object is declared with \"__obj={callee:\"a\"}\""
+---*/
this.callee = 0;
var b;
@@ -54,4 +54,3 @@ if (!(this.b)) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T1.js b/test/suite/ch13/13.2/S13.2.2_A19_T1.js
index 5fdcaee5a..662ba891c 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T1.js
- * @description Function is declared in the global scope
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: Function is declared in the global scope
+---*/
var a = 1;
@@ -26,4 +24,3 @@ if (result !== 1) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T2.js b/test/suite/ch13/13.2/S13.2.2_A19_T2.js
index b36f457b8..41898209b 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T2.js
- * @description Function is declared in the object scope. Using "with" statement
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: Function is declared in the object scope. Using "with" statement
+---*/
var a = 1;
@@ -24,4 +22,3 @@ if (result !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T3.js b/test/suite/ch13/13.2/S13.2.2_A19_T3.js
index 3f6e11266..10eaf76ad 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T3.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T3.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T3.js
- * @description Function is declared in the object scope and then an exception is thrown
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: >
+ Function is declared in the object scope and then an exception is
+ thrown
+---*/
var a = 1;
@@ -31,7 +31,3 @@ if (result !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T4.js b/test/suite/ch13/13.2/S13.2.2_A19_T4.js
index 65f6e765a..eaec3ad4f 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T4.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T4.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T4.js
- * @description Function is declared in the hierarchical object scope and then an exception is thrown
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: >
+ Function is declared in the hierarchical object scope and then an
+ exception is thrown
+---*/
var a = 1;
@@ -33,7 +33,3 @@ if (result !== 3) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T5.js b/test/suite/ch13/13.2/S13.2.2_A19_T5.js
index f0614e175..db670c3c9 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T5.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T5.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T5.js
- * @description Function is declared in the object scope, then an exception is thrown and the object is deleted
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: >
+ Function is declared in the object scope, then an exception is
+ thrown and the object is deleted
+---*/
var a = 1;
@@ -37,4 +37,3 @@ if (result !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T6.js b/test/suite/ch13/13.2/S13.2.2_A19_T6.js
index b9fafb1f5..9c83b8a93 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T6.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T6.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T6.js
- * @description Function is declared in the "object->do-while" scope, then the object is deleted and another object with the same name is declared
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: >
+ Function is declared in the "object->do-while" scope, then the
+ object is deleted and another object with the same name is declared
+---*/
var a = 1;
@@ -38,9 +38,3 @@ if (result !== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T7.js b/test/suite/ch13/13.2/S13.2.2_A19_T7.js
index c83232d66..b4901d7e1 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T7.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T7.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T7.js
- * @description Function is declared in the object scope as a variable
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: Function is declared in the object scope as a variable
+---*/
var a = 1;
@@ -51,4 +49,3 @@ if (this.__func === undefined) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A19_T8.js b/test/suite/ch13/13.2/S13.2.2_A19_T8.js
index 7db4affd8..dc98121bc 100644
--- a/test/suite/ch13/13.2/S13.2.2_A19_T8.js
+++ b/test/suite/ch13/13.2/S13.2.2_A19_T8.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Function's scope chain is started when it is declared
- *
- * @path ch13/13.2/S13.2.2_A19_T8.js
- * @description Function is declared multiply times
- */
+/*---
+info: Function's scope chain is started when it is declared
+description: Function is declared multiply times
+---*/
//////////////////////////////////////////////////////////////////////////////
//CHECK#0
@@ -71,4 +69,3 @@ with ({a:99,b:"c"})
//
//////////////////////////////////////////////////////////////////////////////
}
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A1_T1.js b/test/suite/ch13/13.2/S13.2.2_A1_T1.js
index cb9a2dbd6..1fefa0900 100644
--- a/test/suite/ch13/13.2/S13.2.2_A1_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A1_T1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since a function is an object, it might be set to [[Prototype]] property of a new created object through [[Construct]] property
- *
- * @path ch13/13.2/S13.2.2_A1_T1.js
- * @description Declaring a function with "function __func()"
- */
+/*---
+info: >
+ Since a function is an object, it might be set to [[Prototype]] property
+ of a new created object through [[Construct]] property
+description: Declaring a function with "function __func()"
+---*/
var __MONSTER="monster";
var __PREDATOR="predator";
@@ -41,4 +41,3 @@ if (__monster.type !==__MONSTER) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A1_T2.js b/test/suite/ch13/13.2/S13.2.2_A1_T2.js
index dd907d790..ea9555646 100644
--- a/test/suite/ch13/13.2/S13.2.2_A1_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A1_T2.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since a function is an object, it might be set to [[Prototype]] property of a new created object through [[Construct]] property
- *
- * @path ch13/13.2/S13.2.2_A1_T2.js
- * @description Declaring a function with "var __PROTO = function()"
- */
+/*---
+info: >
+ Since a function is an object, it might be set to [[Prototype]] property
+ of a new created object through [[Construct]] property
+description: Declaring a function with "var __PROTO = function()"
+includes: [$FAIL.js]
+---*/
var __MONSTER="monster";
var __PREDATOR="predator";
@@ -41,4 +42,3 @@ if (__monster.type !==__MONSTER) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A2.js b/test/suite/ch13/13.2/S13.2.2_A2.js
index 3389a36d1..06d40bd13 100644
--- a/test/suite/ch13/13.2/S13.2.2_A2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Since a function is an object, it might be set to [[Prototype]] property of a new created object through [[Construct]] property,
- * but [[call]] property must fail with TypeError error
- *
- * @path ch13/13.2/S13.2.2_A2.js
- * @description Trying to [[call]] this function
- */
+/*---
+info: >
+ Since a function is an object, it might be set to [[Prototype]] property of a new created object through [[Construct]] property,
+ but [[call]] property must fail with TypeError error
+description: Trying to [[call]] this function
+---*/
var __PLANT="flower";
var __ROSE="rose";
@@ -39,4 +38,3 @@ try{
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A3_T1.js b/test/suite/ch13/13.2/S13.2.2_A3_T1.js
index a04721c81..0bb9923d9 100644
--- a/test/suite/ch13/13.2/S13.2.2_A3_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A3_T1.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * It gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
- * If PROTO_VAL is not an object, sets the [[Prototype]] property of native ECMAScript object just created
- * to the original Object prototype object as described in 15.2.3.1
- *
- * @path ch13/13.2/S13.2.2_A3_T1.js
- * @description Declaring a function with "function __FACTORY()"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ It gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
+ If PROTO_VAL is not an object, sets the [[Prototype]] property of native ECMAScript object just created
+ to the original Object prototype object as described in 15.2.3.1
+description: Declaring a function with "function __FACTORY()"
+---*/
function __FACTORY(){};
__FACTORY.prototype=1;
@@ -32,4 +31,3 @@ if (!(Object.prototype.isPrototypeOf(__device))) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A3_T2.js b/test/suite/ch13/13.2/S13.2.2_A3_T2.js
index 613adbb9c..609135ad8 100644
--- a/test/suite/ch13/13.2/S13.2.2_A3_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A3_T2.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * It gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
- * If PROTO_VAL is not an object, sets the [[Prototype]] property of native ECMAScript object just created
- * to the original Object prototype object as described in 15.2.3.1
- *
- * @path ch13/13.2/S13.2.2_A3_T2.js
- * @description Declaring a function with "var __FACTORY = function()"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ It gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
+ If PROTO_VAL is not an object, sets the [[Prototype]] property of native ECMAScript object just created
+ to the original Object prototype object as described in 15.2.3.1
+description: Declaring a function with "var __FACTORY = function()"
+---*/
var __FACTORY = function(){};
__FACTORY.prototype=1;
@@ -32,4 +31,3 @@ if (!(Object.prototype.isPrototypeOf(__device))) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A4_T1.js b/test/suite/ch13/13.2/S13.2.2_A4_T1.js
index 5804b6c29..8824e825c 100644
--- a/test/suite/ch13/13.2/S13.2.2_A4_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A4_T1.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
- * If PROTO_VAL is an object, sets the [[Prototype]] property of native ECMAScript object just created
- * to the PROTO_VAL
- *
- * @path ch13/13.2/S13.2.2_A4_T1.js
- * @description Declaring a function with "function __FACTORY()"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
+ If PROTO_VAL is an object, sets the [[Prototype]] property of native ECMAScript object just created
+ to the PROTO_VAL
+description: Declaring a function with "function __FACTORY()"
+---*/
var __CUBE="cube";
@@ -35,4 +34,3 @@ if (__device.printShape() !== __CUBE) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A4_T2.js b/test/suite/ch13/13.2/S13.2.2_A4_T2.js
index 3560e058b..a130caf38 100644
--- a/test/suite/ch13/13.2/S13.2.2_A4_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A4_T2.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
- * If PROTO_VAL is an object, sets the [[Prototype]] property of native ECMAScript object just created
- * to the PROTO_VAL
- *
- * @path ch13/13.2/S13.2.2_A4_T2.js
- * @description Declaring a function with "__FACTORY = function()"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Gets the value of the [[Prototype]] property of the F(Denote it PROTO_VAL).
+ If PROTO_VAL is an object, sets the [[Prototype]] property of native ECMAScript object just created
+ to the PROTO_VAL
+description: Declaring a function with "__FACTORY = function()"
+---*/
__CUBE="cube";
@@ -35,4 +34,3 @@ if (__device.printShape() !== __CUBE) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A5_T1.js b/test/suite/ch13/13.2/S13.2.2_A5_T1.js
index 03c552318..ac1a9757a 100644
--- a/test/suite/ch13/13.2/S13.2.2_A5_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A5_T1.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing native ECMAScript object just created as the this value and
- * providing the argument list passed into [[Construct]] as the argument values
- *
- * @path ch13/13.2/S13.2.2_A5_T1.js
- * @description Declaring a function with "function __FACTORY(arg1, arg2)"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing native ECMAScript object just created as the this value and
+ providing the argument list passed into [[Construct]] as the argument values
+description: Declaring a function with "function __FACTORY(arg1, arg2)"
+---*/
__VOLUME=8;
__RED="red";
@@ -77,4 +76,3 @@ if (__device.bottom !== __BOTTOM) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A5_T2.js b/test/suite/ch13/13.2/S13.2.2_A5_T2.js
index d3cd773ab..94f9475fd 100644
--- a/test/suite/ch13/13.2/S13.2.2_A5_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A5_T2.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing native ECMAScript object just created as the this value and
- * providing the argument list passed into [[Construct]] as the argument values
- *
- * @path ch13/13.2/S13.2.2_A5_T2.js
- * @description Declaring a function with "__FACTORY = function(arg1, arg2)"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing native ECMAScript object just created as the this value and
+ providing the argument list passed into [[Construct]] as the argument values
+description: Declaring a function with "__FACTORY = function(arg1, arg2)"
+---*/
__VOLUME=8;
__RED="red";
@@ -77,4 +76,3 @@ if (__device.bottom !== __BOTTOM) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A6_T1.js b/test/suite/ch13/13.2/S13.2.2_A6_T1.js
index 82ef96dce..6817c9c06 100644
--- a/test/suite/ch13/13.2/S13.2.2_A6_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A6_T1.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is not Object then return passed as this into [[Call]] object
- *
- * @path ch13/13.2/S13.2.2_A6_T1.js
- * @description Declaring a function with "__func = function(arg)"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is not Object then return passed as this into [[Call]] object
+description: Declaring a function with "__func = function(arg)"
+---*/
__FOO="fooValue";
__BAR="barValue";
@@ -38,4 +37,3 @@ if (__obj.bar!==undefined) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A6_T2.js b/test/suite/ch13/13.2/S13.2.2_A6_T2.js
index f428bcb15..f4222ff90 100644
--- a/test/suite/ch13/13.2/S13.2.2_A6_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A6_T2.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is not Object then return passed as this into [[Call]] object
- *
- * @path ch13/13.2/S13.2.2_A6_T2.js
- * @description Declaring a function with "function __func (arg)"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is not Object then return passed as this into [[Call]] object
+description: Declaring a function with "function __func (arg)"
+---*/
var __FOO="fooValue";
var __BAR="barValue";
@@ -38,4 +37,3 @@ if (__obj.bar!==undefined) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A7_T1.js b/test/suite/ch13/13.2/S13.2.2_A7_T1.js
index 02734e83e..7594e3754 100644
--- a/test/suite/ch13/13.2/S13.2.2_A7_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A7_T1.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is an Object then return this just as obtained object
- *
- * @path ch13/13.2/S13.2.2_A7_T1.js
- * @description Declaring a function with "as __func = function(arg)"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is an Object then return this just as obtained object
+description: Declaring a function with "as __func = function(arg)"
+---*/
var __FRST="one";
var __SCND="two";
@@ -39,4 +38,3 @@ if (__obj__.second !== __SCND) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A7_T2.js b/test/suite/ch13/13.2/S13.2.2_A7_T2.js
index 9fbebf72c..e453b725c 100644
--- a/test/suite/ch13/13.2/S13.2.2_A7_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A7_T2.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is an Object then return this just as obtained object
- *
- * @path ch13/13.2/S13.2.2_A7_T2.js
- * @description Declaring a "function as function __func (arg)"
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is an Object then return this just as obtained object
+description: Declaring a "function as function __func (arg)"
+---*/
__FRST="one";
__SCND="two";
@@ -39,4 +38,3 @@ if (__obj__.second !== __SCND) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A8_T1.js b/test/suite/ch13/13.2/S13.2.2_A8_T1.js
index 640c120f8..7ff876f70 100644
--- a/test/suite/ch13/13.2/S13.2.2_A8_T1.js
+++ b/test/suite/ch13/13.2/S13.2.2_A8_T1.js
@@ -1,16 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is an Function then return this just as obtained function
- *
- * @path ch13/13.2/S13.2.2_A8_T1.js
- * @description Creating a function whose prototype contains "return" followed by declaration of another function
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is an Function then return this just as obtained function
+description: >
+ Creating a function whose prototype contains "return" followed by
+ declaration of another function
+---*/
var __FRST="one";
var __SCND="two";
@@ -50,5 +51,3 @@ if (__instance(1)!== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A8_T2.js b/test/suite/ch13/13.2/S13.2.2_A8_T2.js
index e7f454b8d..e0be6ad6d 100644
--- a/test/suite/ch13/13.2/S13.2.2_A8_T2.js
+++ b/test/suite/ch13/13.2/S13.2.2_A8_T2.js
@@ -1,16 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is an Function then return this just as obtained function
- *
- * @path ch13/13.2/S13.2.2_A8_T2.js
- * @description Creating a function whose prototype contains declaration of another function declared as a variable
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is an Function then return this just as obtained function
+description: >
+ Creating a function whose prototype contains declaration of
+ another function declared as a variable
+---*/
var __FRST="one";
var __SCND="two";
@@ -48,5 +49,3 @@ if (__instance("SAM")!== "SAMBA") {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A8_T3.js b/test/suite/ch13/13.2/S13.2.2_A8_T3.js
index e5e05f4bd..43c1569ae 100644
--- a/test/suite/ch13/13.2/S13.2.2_A8_T3.js
+++ b/test/suite/ch13/13.2/S13.2.2_A8_T3.js
@@ -1,16 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When the [[Construct]] property for a Function object F is called:
- * A new native ECMAScript object is created.
- * Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
- * list passed into [[Construct]] as the argument values.
- * If Type( [[Call]] returned) is an Function then return this just as obtained function
- *
- * @path ch13/13.2/S13.2.2_A8_T3.js
- * @description Creating a function whose prototype contains declaration of another function defined by using Function.call method
- */
+/*---
+info: >
+ When the [[Construct]] property for a Function object F is called:
+ A new native ECMAScript object is created.
+ Invoke the [[Call]] property of F, providing just created native ECMAScript object as the this value and providing the argument
+ list passed into [[Construct]] as the argument values.
+ If Type( [[Call]] returned) is an Function then return this just as obtained function
+description: >
+ Creating a function whose prototype contains declaration of
+ another function defined by using Function.call method
+---*/
var __FRST="one";
var __SCND="two";
@@ -48,5 +49,3 @@ if (__instance(1)!== 2) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2.2_A9.js b/test/suite/ch13/13.2/S13.2.2_A9.js
index 4e178109c..17950fd32 100644
--- a/test/suite/ch13/13.2/S13.2.2_A9.js
+++ b/test/suite/ch13/13.2/S13.2.2_A9.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Calling a function as a constructor is inadmissible as long as this.any_Function is called before it is declared
- *
- * @path ch13/13.2/S13.2.2_A9.js
- * @description Calling a function as a constructor
- */
+/*---
+info: >
+ Calling a function as a constructor is inadmissible as long as
+ this.any_Function is called before it is declared
+description: Calling a function as a constructor
+includes: [Test262Error.js]
+---*/
function FACTORY(){
this.id = 0;
@@ -22,10 +23,9 @@ function FACTORY(){
//CHECK#1
try {
var obj = new FACTORY();
- $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
-} catch (e) {
+ $ERROR('#1: var obj = new FACTORY() lead to throwing exception');
+} catch (e) {
if (e instanceof Test262Error) throw e;
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2.3_A1.js b/test/suite/ch13/13.2/S13.2.3_A1.js
index bc6d70b90..9720f44d0 100644
--- a/test/suite/ch13/13.2/S13.2.3_A1.js
+++ b/test/suite/ch13/13.2/S13.2.3_A1.js
@@ -1,12 +1,12 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2.3_A1.js
- * @description check that all poisoning use the [[ThrowTypeError]]
- * function object.
- * @onlyStrict
- */
+/*---
+description: >
+ check that all poisoning use the [[ThrowTypeError]] function
+ object.
+flags: [onlyStrict]
+---*/
"use strict";
var poison = Object.getOwnPropertyDescriptor(function() {}, 'caller').get;
@@ -46,4 +46,3 @@ checkPoison((function() { return arguments; })(), 'caller');
checkPoison((function() { return arguments; })(), 'callee');
checkPoison((function() {}).bind(null), 'caller');
checkPoison((function() {}).bind(null), 'arguments');
-
diff --git a/test/suite/ch13/13.2/S13.2_A1_T1.js b/test/suite/ch13/13.2/S13.2_A1_T1.js
index 5f7d1b15a..2de2d0e27 100644
--- a/test/suite/ch13/13.2/S13.2_A1_T1.js
+++ b/test/suite/ch13/13.2/S13.2_A1_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * A "prototype" property is automatically created for every function
- *
- * @path ch13/13.2/S13.2_A1_T1.js
- * @description Using "function __func(){}" as a FunctionDeclaration
- */
+/*---
+info: A "prototype" property is automatically created for every function
+description: Using "function __func(){}" as a FunctionDeclaration
+---*/
function __func(){};
@@ -17,4 +15,3 @@ if (__func.prototype === undefined) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2_A1_T2.js b/test/suite/ch13/13.2/S13.2_A1_T2.js
index b9d933a6d..afe08f124 100644
--- a/test/suite/ch13/13.2/S13.2_A1_T2.js
+++ b/test/suite/ch13/13.2/S13.2_A1_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * A "prototype" property is automatically created for every function
- *
- * @path ch13/13.2/S13.2_A1_T2.js
- * @description Using "var __func = function(){}" as a FunctionDeclaration
- */
+/*---
+info: A "prototype" property is automatically created for every function
+description: Using "var __func = function(){}" as a FunctionDeclaration
+---*/
var __func = function(){};
@@ -17,4 +15,3 @@ if (__func.prototype === undefined) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2_A2_T1.js b/test/suite/ch13/13.2/S13.2_A2_T1.js
index b49ba1973..e72e5bce5 100644
--- a/test/suite/ch13/13.2/S13.2_A2_T1.js
+++ b/test/suite/ch13/13.2/S13.2_A2_T1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Nested function are admitted
- *
- * @path ch13/13.2/S13.2_A2_T1.js
- * @description Nesting level is two
- */
+/*---
+info: Nested function are admitted
+description: Nesting level is two
+---*/
var __JEDI="jedi";
@@ -25,4 +23,3 @@ if (__FUNC()(__JEDI) !== __JEDI) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2_A2_T2.js b/test/suite/ch13/13.2/S13.2_A2_T2.js
index 024a624fa..d3c414349 100644
--- a/test/suite/ch13/13.2/S13.2_A2_T2.js
+++ b/test/suite/ch13/13.2/S13.2_A2_T2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Nested function are admitted
- *
- * @path ch13/13.2/S13.2_A2_T2.js
- * @description Nesting level is three
- */
+/*---
+info: Nested function are admitted
+description: Nesting level is three
+---*/
var __ROBOT="C3PO";
@@ -27,4 +25,3 @@ if (__FUNC()()(__ROBOT) !== __ROBOT) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
diff --git a/test/suite/ch13/13.2/S13.2_A3.js b/test/suite/ch13/13.2/S13.2_A3.js
index 3cd3c7032..3ba2be772 100644
--- a/test/suite/ch13/13.2/S13.2_A3.js
+++ b/test/suite/ch13/13.2/S13.2_A3.js
@@ -1,12 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When Function object(F) is constructed the length property of F is set to the number of formal properties specified in FormalParameterList
- *
- * @path ch13/13.2/S13.2_A3.js
- * @description Creating functions with various FormalParameterList and checking their lengths
- */
+/*---
+info: >
+ When Function object(F) is constructed the length property of F is set to
+ the number of formal properties specified in FormalParameterList
+description: >
+ Creating functions with various FormalParameterList and checking
+ their lengths
+---*/
function __func(){};
@@ -27,5 +29,3 @@ if (__gunc.length !== 3) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A4_T1.js b/test/suite/ch13/13.2/S13.2_A4_T1.js
index ef47b61a0..2368e418c 100644
--- a/test/suite/ch13/13.2/S13.2_A4_T1.js
+++ b/test/suite/ch13/13.2/S13.2_A4_T1.js
@@ -1,16 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When Function object(F) is constructed the following steps from 9 to 11 take place
- * 9.Create a new object as would be constructed by the expression new Object().
- * 10. Set the constructor property of Result(9) to F. This property is given attributes { DontEnum }.
- * 11. Set the "prototype" property of F to Result(9).
- *
- * @path ch13/13.2/S13.2_A4_T1.js
- * @description Checking prototype, prototype.constructor properties and {DontEnum} property of a constructor.
- * Using "function __func(){}" as a FunctionDeclaration
- */
+/*---
+info: >
+ When Function object(F) is constructed the following steps from 9 to 11 take place
+ 9.Create a new object as would be constructed by the expression new Object().
+ 10. Set the constructor property of Result(9) to F. This property is given attributes { DontEnum }.
+ 11. Set the "prototype" property of F to Result(9).
+description: >
+ Checking prototype, prototype.constructor properties and
+ {DontEnum} property of a constructor. Using "function __func(){}"
+ as a FunctionDeclaration
+---*/
function __func(){};
@@ -44,9 +45,3 @@ if (__constructor_was__enumed) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A4_T2.js b/test/suite/ch13/13.2/S13.2_A4_T2.js
index 2da55b763..f18ade750 100644
--- a/test/suite/ch13/13.2/S13.2_A4_T2.js
+++ b/test/suite/ch13/13.2/S13.2_A4_T2.js
@@ -1,16 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When Function object(F) is constructed the following steps from 9 to 11 take place
- * 9.Create a new object as would be constructed by the expression new Object().
- * 10. Set the constructor property of Result(9) to F. This property is given attributes { DontEnum }.
- * 11. Set the "prototype" property of F to Result(9).
- *
- * @path ch13/13.2/S13.2_A4_T2.js
- * @description Checking prototype, prototype.constructor properties and {DontEnum} property of a constructor.
- * Using "var __gunc = function(){}" as a FunctionDeclaration
- */
+/*---
+info: >
+ When Function object(F) is constructed the following steps from 9 to 11 take place
+ 9.Create a new object as would be constructed by the expression new Object().
+ 10. Set the constructor property of Result(9) to F. This property is given attributes { DontEnum }.
+ 11. Set the "prototype" property of F to Result(9).
+description: >
+ Checking prototype, prototype.constructor properties and
+ {DontEnum} property of a constructor. Using "var __gunc =
+ function(){}" as a FunctionDeclaration
+---*/
var __gunc = function(){};
@@ -44,9 +45,3 @@ if (__constructor_was__enumed) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
-
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A5.js b/test/suite/ch13/13.2/S13.2_A5.js
index 6d88fad8e..988148352 100644
--- a/test/suite/ch13/13.2/S13.2_A5.js
+++ b/test/suite/ch13/13.2/S13.2_A5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * When Function object(F) is constructed
- * the [[Prototype]] property of F is set to the original Function prototype object as specified in 15.3.3.1
- *
- * @path ch13/13.2/S13.2_A5.js
- * @description Function.prototype.isPrototypeOf() is used
- */
+/*---
+info: >
+ When Function object(F) is constructed
+ the [[Prototype]] property of F is set to the original Function prototype object as specified in 15.3.3.1
+description: Function.prototype.isPrototypeOf() is used
+---*/
function __func(){};
@@ -29,6 +28,3 @@ if (!(Function.prototype.isPrototypeOf(__gunc))) {
}
//
//////////////////////////////////////////////////////////////////////////////
-
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A6_T1.js b/test/suite/ch13/13.2/S13.2_A6_T1.js
index 2fca01cc2..b1148301f 100644
--- a/test/suite/ch13/13.2/S13.2_A6_T1.js
+++ b/test/suite/ch13/13.2/S13.2_A6_T1.js
@@ -1,13 +1,10 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2_A6_T1.js
- * @description check if "caller" poisoning poisons
- * getOwnPropertyDescriptor too
- * @onlyStrict
- */
+/*---
+description: check if "caller" poisoning poisons getOwnPropertyDescriptor too
+flags: [onlyStrict]
+---*/
"use strict";
Object.getOwnPropertyDescriptor(function(){}, 'caller');
-
diff --git a/test/suite/ch13/13.2/S13.2_A6_T2.js b/test/suite/ch13/13.2/S13.2_A6_T2.js
index e8a334462..e7088fa93 100644
--- a/test/suite/ch13/13.2/S13.2_A6_T2.js
+++ b/test/suite/ch13/13.2/S13.2_A6_T2.js
@@ -1,13 +1,12 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2_A6_T2.js
- * @description check if "arguments" poisoning poisons
- * getOwnPropertyDescriptor too
- * @onlyStrict
- */
+/*---
+description: >
+ check if "arguments" poisoning poisons getOwnPropertyDescriptor
+ too
+flags: [onlyStrict]
+---*/
"use strict";
Object.getOwnPropertyDescriptor(function(){}, 'arguments');
-
diff --git a/test/suite/ch13/13.2/S13.2_A7_T1.js b/test/suite/ch13/13.2/S13.2_A7_T1.js
index d557bbd67..78198580b 100644
--- a/test/suite/ch13/13.2/S13.2_A7_T1.js
+++ b/test/suite/ch13/13.2/S13.2_A7_T1.js
@@ -1,14 +1,10 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2_A7_T1.js
- * @description check if "caller" poisoning poisons
- * hasOwnProperty too
- * @onlyStrict
- */
+/*---
+description: check if "caller" poisoning poisons hasOwnProperty too
+flags: [onlyStrict]
+---*/
"use strict";
(function(){}).hasOwnProperty('caller');
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A7_T2.js b/test/suite/ch13/13.2/S13.2_A7_T2.js
index 82c03938f..8c2212356 100644
--- a/test/suite/ch13/13.2/S13.2_A7_T2.js
+++ b/test/suite/ch13/13.2/S13.2_A7_T2.js
@@ -1,14 +1,10 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2_A7_T2.js
- * @description check if "arguments" poisoning poisons
- * hasOwnProperty too
- * @onlyStrict
- */
+/*---
+description: check if "arguments" poisoning poisons hasOwnProperty too
+flags: [onlyStrict]
+---*/
"use strict";
(function(){}).hasOwnProperty('arguments');
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A8_T1.js b/test/suite/ch13/13.2/S13.2_A8_T1.js
index a68553e82..9b5dcd4e2 100644
--- a/test/suite/ch13/13.2/S13.2_A8_T1.js
+++ b/test/suite/ch13/13.2/S13.2_A8_T1.js
@@ -1,14 +1,10 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2_A8_T1.js
- * @description check if "caller" poisoning poisons
- * "in" too
- * @onlyStrict
- */
+/*---
+description: check if "caller" poisoning poisons "in" too
+flags: [onlyStrict]
+---*/
"use strict";
'caller' in function() {};
-
-
diff --git a/test/suite/ch13/13.2/S13.2_A8_T2.js b/test/suite/ch13/13.2/S13.2_A8_T2.js
index 0d9eec7c5..58c7c58b1 100644
--- a/test/suite/ch13/13.2/S13.2_A8_T2.js
+++ b/test/suite/ch13/13.2/S13.2_A8_T2.js
@@ -1,14 +1,10 @@
// Copyright 2011 Google Inc. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch13/13.2/S13.2_A8_T2.js
- * @description check if "arguments" poisoning poisons
- * "in" too
- * @onlyStrict
- */
+/*---
+description: check if "arguments" poisoning poisons "in" too
+flags: [onlyStrict]
+---*/
"use strict";
'arguments' in function() {};
-
-