aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.4/15.4.4/15.4.4.22
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.4/15.4.4/15.4.4.22')
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-1.js36
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-2.js34
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-1.js40
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-10.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-11.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-12.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-13.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-14.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-15.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-2.js40
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-3.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-4.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-5.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-6.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-7.js46
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-8.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-9.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-1.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-2.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-3.js42
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-4.js44
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-5.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-6.js44
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-7.js44
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-8.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-1.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-10.js86
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-11.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-12.js83
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-13.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-15.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-17.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-18.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-19.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-2.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-3.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-4.js64
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-5.js89
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-6.js64
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-7.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-8.js85
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-9.js93
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-1.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-10.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-11.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-12.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-13.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-15.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-16.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-17.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-18.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-19.js100
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-2.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-20.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-21.js101
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-22.js93
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-23.js113
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-24.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-25.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-28.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-29.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-3.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-4.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-5.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-6.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-7.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-8.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-9.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-1.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-10.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-11.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-12.js44
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-15.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-2.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-3.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-4.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-5.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-6.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-7.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-8.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-9.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-1.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-10.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-11.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-12.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-13.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-2.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-3.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-4.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-5.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-6.js63
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js75
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-8.js88
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-9.js36
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-1.js44
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-10.js34
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-11.js34
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-2.js53
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-3.js53
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-4.js53
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-5.js53
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-6.js57
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-7.js69
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-8.js83
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-9.js83
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-1.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-2.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-3.js98
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js58
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-2.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-1.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-10.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-11.js81
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-12.js81
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-13.js95
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-14.js93
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-15.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-16.js78
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-17.js64
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-18.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-19.js77
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-2.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-20.js75
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-21.js78
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-22.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-23.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-25.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-26.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-27.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-28.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-29.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-3.js71
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-30.js92
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-31.js92
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-32.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-33.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-4.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-5.js93
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-6.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-7.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-8.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-9.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-1.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-2.js61
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-3.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-4.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-5.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-6.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-7.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-8.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-1.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-2.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-3.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-4.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-5.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-6.js60
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-7.js46
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-8.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-9.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-1.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-10.js87
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-11.js84
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-12.js83
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-13.js81
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-14.js78
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-15.js95
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-16.js88
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-17.js82
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-18.js82
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-19.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-2.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-20.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-21.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-22.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-23.js87
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-24.js84
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-25.js83
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-26.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-27.js78
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-28.js94
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-29.js88
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-3.js78
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-4.js82
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-5.js82
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-6.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-7.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-8.js91
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-9.js90
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-1.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-1.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-10.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-11.js81
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-12.js81
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-13.js95
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-14.js91
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-15.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-16.js78
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-17.js64
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-18.js66
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-19.js77
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-2.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-20.js75
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-21.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-22.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-23.js80
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-25.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-26.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-27.js59
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-28.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-29.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-3.js71
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-30.js94
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-31.js96
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-32.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-33.js76
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-4.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-5.js91
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-6.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-7.js64
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-8.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-9.js68
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-1.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-10.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-11.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-12.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-13.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-14.js40
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-16.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-17.js64
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-18.js61
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-19.js57
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-2.js56
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-20.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-21.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-22.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-23.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-24.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-25.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-26.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-27.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-28.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-29.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-3.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-30.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-31.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-33.js48
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-34.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-35.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-37.js52
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4-s.js50
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4.js62
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-5.js74
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-7.js70
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-8.js54
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-9.js48
258 files changed, 8725 insertions, 8204 deletions
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-1.js
index 5796279d0..dacaeab14 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-1.js
@@ -1,18 +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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-1.js
- * @description Array.prototype.reduceRight must exist as a function
- */
-
-
-function testcase() {
- var f = Array.prototype.reduceRight;
- if (typeof(f) === "function") {
- 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: Array.prototype.reduceRight must exist as a function
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var f = Array.prototype.reduceRight;
+ if (typeof(f) === "function") {
+ return true;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-2.js
index 0fc9fb1b8..9ebe75060 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-2.js
@@ -1,17 +1,17 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-0-2.js
- * @description Array.prototype.reduceRight.length must be 1
- */
-
-
-function testcase() {
- if (Array.prototype.reduceRight.length === 1) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight.length must be 1
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ if (Array.prototype.reduceRight.length === 1) {
+ return true;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-1.js
index 3d13569fd..86cebb372 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-1.js
@@ -1,20 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-1.js
- * @description Array.prototype.reduceRight applied to undefined throws a TypeError
- */
-
-
-function testcase() {
- try {
- Array.prototype.reduceRight.call(undefined);
- 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: Array.prototype.reduceRight applied to undefined throws a TypeError
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ Array.prototype.reduceRight.call(undefined);
+ return false;
+ } catch (e) {
+ return (e instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-10.js
index 4c04ab1b9..76a4e3e1a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-10.js
@@ -1,30 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-10.js
- * @description Array.prototype.reduceRight applied to the Math object
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return '[object Math]' === Object.prototype.toString.call(obj);
- }
-
- try {
- Math.length = 1;
- Math[0] = 1;
- return Array.prototype.reduceRight.call(Math, callbackfn, 1) && accessed;
- } finally {
- delete Math[0];
- delete Math.length;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight applied to the Math object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return '[object Math]' === Object.prototype.toString.call(obj);
+ }
+
+ try {
+ Math.length = 1;
+ Math[0] = 1;
+ return Array.prototype.reduceRight.call(Math, callbackfn, 1) && accessed;
+ } finally {
+ delete Math[0];
+ delete Math.length;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-11.js
index c9cb0bb76..032d9f654 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-11.js
@@ -1,26 +1,26 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-11.js
- * @description Array.prototype.reduceRight applied to Date object
- */
-
-
-function testcase() {
-
- var obj = new Date();
- obj.length = 1;
- obj[0] = 1;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Date;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) && accessed;
- }
-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: Array.prototype.reduceRight applied to Date object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = new Date();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Date;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-12.js
index b22d82384..d0b5ce443 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-12.js
@@ -1,26 +1,26 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-12.js
- * @description Array.prototype.reduceRight applied to RegExp object
- */
-
-
-function testcase() {
-
- var obj = new RegExp();
- obj.length = 1;
- obj[0] = 1;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof RegExp;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) && accessed;
- }
-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: Array.prototype.reduceRight applied to RegExp object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = new RegExp();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof RegExp;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-13.js
index 399fd832b..2ca8a6ccc 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-13.js
@@ -1,30 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-13.js
- * @description Array.prototype.reduceRight applied to the JSON object
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return ('[object JSON]' === Object.prototype.toString.call(obj));
- }
-
- try {
- JSON.length = 1;
- JSON[0] = 1;
- return Array.prototype.reduceRight.call(JSON, callbackfn, 1) && accessed;
- } finally {
- delete JSON.length;
- delete JSON[0];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight applied to the JSON object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return ('[object JSON]' === Object.prototype.toString.call(obj));
+ }
+
+ try {
+ JSON.length = 1;
+ JSON[0] = 1;
+ return Array.prototype.reduceRight.call(JSON, callbackfn, 1) && accessed;
+ } finally {
+ delete JSON.length;
+ delete JSON[0];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-14.js
index 1574867c4..455ca5dc3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-14.js
@@ -1,26 +1,26 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-14.js
- * @description Array.prototype.reduceRight applied to Error object
- */
-
-
-function testcase() {
-
- var obj = new Error();
- obj.length = 1;
- obj[0] = 1;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Error;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) && accessed;
- }
-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: Array.prototype.reduceRight applied to Error object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = new Error();
+ obj.length = 1;
+ obj[0] = 1;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Error;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-15.js
index b4fb8c62e..80aa82f1a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-15.js
@@ -1,27 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-15.js
- * @description Array.prototype.reduceRight applied to the Arguments object
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return '[object Arguments]' === Object.prototype.toString.call(obj);
- }
-
- var obj = (function () {
- return arguments;
- }("a", "b"));
-
- return Array.prototype.reduceRight.call(obj, callbackfn, "a") && accessed;
- }
-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: Array.prototype.reduceRight applied to the Arguments object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return '[object Arguments]' === Object.prototype.toString.call(obj);
+ }
+
+ var obj = (function () {
+ return arguments;
+ }("a", "b"));
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, "a") && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-2.js
index 9e28609f6..1aa16790b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-2.js
@@ -1,20 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-2.js
- * @description Array.prototype.reduceRight applied to null throws a TypeError
- */
-
-
-function testcase() {
- try {
- Array.prototype.reduceRight.call(null);
- 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: Array.prototype.reduceRight applied to null throws a TypeError
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ try {
+ Array.prototype.reduceRight.call(null);
+ return false;
+ } catch (e) {
+ return (e instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-3.js
index b14059e3b..884305e32 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-3.js
@@ -1,30 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-3.js
- * @description Array.prototype.reduceRight applied to boolean primitive
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Boolean;
- }
-
- try {
- Boolean.prototype[0] = 1;
- Boolean.prototype.length = 1;
- return Array.prototype.reduceRight.call(false, callbackfn, 1) && accessed;
- } finally {
- delete Boolean.prototype[0];
- delete Boolean.prototype.length;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight applied to boolean primitive
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Boolean;
+ }
+
+ try {
+ Boolean.prototype[0] = 1;
+ Boolean.prototype.length = 1;
+ return Array.prototype.reduceRight.call(false, callbackfn, 1) && accessed;
+ } finally {
+ delete Boolean.prototype[0];
+ delete Boolean.prototype.length;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-4.js
index 555e3f740..92e76b292 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-4.js
@@ -1,27 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-4.js
- * @description Array.prototype.reduceRight applied to Boolean object
- */
-
-
-function testcase() {
-
- var obj = new Boolean(true);
- obj.length = 2;
- obj[0] = 11;
- obj[1] = 12;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Boolean;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
- }
-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: Array.prototype.reduceRight applied to Boolean object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = new Boolean(true);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Boolean;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-5.js
index 3f8c6bf33..f7b0fec9b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-5.js
@@ -1,30 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-5.js
- * @description Array.prototype.reduceRight applied to number primitive
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof Number;
- }
-
- try {
- Number.prototype[0] = 1;
- Number.prototype.length = 1;
- return Array.prototype.reduceRight.call(2.5, callbackfn, 1) && accessed;
- } finally {
- delete Number.prototype[0];
- delete Number.prototype.length;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight applied to number primitive
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof Number;
+ }
+
+ try {
+ Number.prototype[0] = 1;
+ Number.prototype.length = 1;
+ return Array.prototype.reduceRight.call(2.5, callbackfn, 1) && accessed;
+ } finally {
+ delete Number.prototype[0];
+ delete Number.prototype.length;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-6.js
index db14da31f..7b4164e4e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-6.js
@@ -1,27 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-6.js
- * @description Array.prototype.reduceRight applied to Number object
- */
-
-
-function testcase() {
-
- var obj = new Number(-128);
- obj.length = 2;
- obj[0] = 11;
- obj[1] = 12;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Number;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
- }
-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: Array.prototype.reduceRight applied to Number object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = new Number(-128);
+ obj.length = 2;
+ obj[0] = 11;
+ obj[1] = 12;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Number;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-7.js
index 11b46169c..7cb9c0949 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-7.js
@@ -1,23 +1,23 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-7.js
- * @description Array.prototype.reduceRight applied to string primitive
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj instanceof String;
- }
-
- return Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h") && accessed;
- }
-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: Array.prototype.reduceRight applied to string primitive
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj instanceof String;
+ }
+
+ return Array.prototype.reduceRight.call("hello\nworld\\!", callbackfn, "h") && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-8.js
index 4eadbd788..96410f244 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-8.js
@@ -1,24 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-8.js
- * @description Array.prototype.reduceRight applied to String object
- */
-
-
-function testcase() {
-
- var obj = new String("hello\nworld\\!");
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof String;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, "h") && accessed;
- }
-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: Array.prototype.reduceRight applied to String object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = new String("hello\nworld\\!");
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof String;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, "h") && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-9.js
index dfec5980d..d39a53445 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-9.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-1-9.js
- * @description Array.prototype.reduceRight applied to Function object
- */
-
-
-function testcase() {
-
- var obj = function (a, b) {
- return a + b;
- };
- obj[0] = 11;
- obj[1] = 9;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, o) {
- accessed = true;
- return o instanceof Function;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
- }
-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: Array.prototype.reduceRight applied to Function object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = function (a, b) {
+ return a + b;
+ };
+ obj[0] = 11;
+ obj[1] = 9;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, o) {
+ accessed = true;
+ return o instanceof Function;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-1.js
index 01fb36a62..939870091 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-1.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-1.js
- * @description Array.prototype.reduceRight doesn't mutate the Array on which it is called on
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- return 1;
- }
- var srcArr = [1,2,3,4,5];
- srcArr.reduceRight(callbackfn);
- if(srcArr[0] === 1 &&
- srcArr[1] === 2 &&
- srcArr[2] === 3 &&
- srcArr[3] === 4 &&
- srcArr[4] === 5)
- {
- 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: >
+ Array.prototype.reduceRight doesn't mutate the Array on which it
+ is called on
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return 1;
+ }
+ var srcArr = [1,2,3,4,5];
+ srcArr.reduceRight(callbackfn);
+ if(srcArr[0] === 1 &&
+ srcArr[1] === 2 &&
+ srcArr[2] === 3 &&
+ srcArr[3] === 4 &&
+ srcArr[4] === 5)
+ {
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-2.js
index 949469703..b5c5b2799 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-2.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-2.js
- * @description Array.prototype.reduceRight reduces array in descending order of indices
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- return prevVal + curVal;
- }
- var srcArr = ['1','2','3','4','5'];
- if(srcArr.reduceRight(callbackfn) === '54321')
- {
- 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: >
+ Array.prototype.reduceRight reduces array in descending order of
+ indices
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ if(srcArr.reduceRight(callbackfn) === '54321')
+ {
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-3.js
index 8194b7684..3d6ff9eaf 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-3.js
@@ -1,21 +1,21 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-3.js
- * @description Array.prototype.reduceRight - subclassed array with length 1
- */
-
-
-function testcase() {
- foo.prototype = [1];
- function foo() {}
- var f = new foo();
-
- function cb(){}
- if(f.reduceRight(cb) === 1)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight - subclassed array with length 1
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
+
+ function cb(){}
+ if(f.reduceRight(cb) === 1)
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-4.js
index 953ac8be8..e850d493f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-4.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-4.js
- * @description Array.prototype.reduceRight - subclassed array with length more than 1
- */
-
-
-function testcase() {
- foo.prototype = new Array(0, 1, 2, 3);
- function foo() {}
- var f = new foo();
-
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
- if(f.reduceRight(cb) === 6)
- 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: >
+ Array.prototype.reduceRight - subclassed array with length more
+ than 1
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(0, 1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+ if(f.reduceRight(cb) === 6)
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-5.js
index af5b7901c..0bc79e61b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-5.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-5.js
- * @description Array.prototype.reduceRight reduces array in descending order of indices(initialvalue present)
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- return prevVal + curVal;
- }
- var srcArr = ['1','2','3','4','5'];
- if(srcArr.reduceRight(callbackfn,'6') === '654321')
- {
- 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: >
+ Array.prototype.reduceRight reduces array in descending order of
+ indices(initialvalue present)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ return prevVal + curVal;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ if(srcArr.reduceRight(callbackfn,'6') === '654321')
+ {
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-6.js
index 473b78fa9..7c6c3e374 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-6.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-6.js
- * @description Array.prototype.reduceRight - subclassed array when initialvalue provided
- */
-
-
-function testcase() {
- foo.prototype = new Array(0, 1, 2, 3);
- function foo() {}
- var f = new foo();
-
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
- if(f.reduceRight(cb,"4") === "43210")
- 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: >
+ Array.prototype.reduceRight - subclassed array when initialvalue
+ provided
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(0, 1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+ if(f.reduceRight(cb,"4") === "43210")
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-7.js
index 2cb0e2d9f..24b6700aa 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-7.js
- * @description Array.prototype.reduceRight - subclassed array when length to 1 and initialvalue provided
- */
-
-
-function testcase() {
- foo.prototype = [1];
- function foo() {}
- var f = new foo();
-
- function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
- if(f.reduceRight(cb,"4") === "41")
- 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: >
+ Array.prototype.reduceRight - subclassed array when length to 1
+ and initialvalue provided
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = [1];
+ function foo() {}
+ var f = new foo();
+
+ function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
+ if(f.reduceRight(cb,"4") === "41")
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-8.js
index bc3b418dd..b6d50d59f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-8.js
@@ -1,31 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-10-8.js
- * @description Array.prototype.reduceRight doesn't visit expandos
- */
-
-
-function testcase() {
-
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- }
- var srcArr = ['1','2','3','4','5'];
- srcArr["i"] = 10;
- srcArr[true] = 11;
-
- srcArr.reduceRight(callbackfn);
-
- if(callCnt == 4)
- {
- 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: Array.prototype.reduceRight doesn't visit expandos
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ }
+ var srcArr = ['1','2','3','4','5'];
+ srcArr["i"] = 10;
+ srcArr[true] = 11;
+
+ srcArr.reduceRight(callbackfn);
+
+ if(callCnt == 4)
+ {
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-1.js
index bf82f81a9..fa250daca 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-1.js
@@ -1,29 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-1.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own data property
- */
-
-
-function testcase() {
-
- var accessed = false;
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: 2
- };
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own data property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: 2
+ };
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-10.js
index f02f9e54f..bb09aba5a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-10.js
@@ -1,42 +1,44 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-10.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an inherited accessor property
- */
-
-
-function testcase() {
-
- var accessed = false;
- var Con = function () { };
-
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- var proto = {};
-
- Object.defineProperty(proto, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- Con.prototype = proto;
-
- var child = new Con();
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
-
-
- return Array.prototype.reduceRight.call(child, callbackfn, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an inherited accessor property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var Con = function () { };
+
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+
+ return Array.prototype.reduceRight.call(child, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-11.js
index ee947d84e..9ea23c85e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-11.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-11.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own accessor property without a get function
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof obj.length === "undefined";
- }
-
- var obj = {
- 0: 11,
- 1: 12
- };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 111) === 111 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own accessor property without a get function
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof obj.length === "undefined";
+ }
+
+ var obj = {
+ 0: 11,
+ 1: 12
+ };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 111) === 111 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-12.js
index 13e1f0628..e40fd37fa 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-12.js
@@ -1,40 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-12.js
- * @description Array.prototype.reduceRight - 'length' is own accessor property without a get function that overrides an inherited accessor property
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof obj.length === "undefined";
- }
-
- try {
- Object.defineProperty(Object.prototype, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- var obj = { 0: 12, 1: 13 };
- Object.defineProperty(obj, "length", {
- set: function () { },
- configurable: true
- });
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) === 11 && !accessed;
- } finally {
- delete Object.prototype.length;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - 'length' is own accessor property
+ without a get function that overrides an inherited accessor
+ property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof obj.length === "undefined";
+ }
+
+ try {
+ Object.defineProperty(Object.prototype, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var obj = { 0: 12, 1: 13 };
+ Object.defineProperty(obj, "length", {
+ set: function () { },
+ configurable: true
+ });
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) === 11 && !accessed;
+ } finally {
+ delete Object.prototype.length;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-13.js
index ffb214568..fd3524ed7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-13.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-13.js
- * @description Array.prototype.reduceRight applied to the Array-like object that 'length' is inherited accessor property without a get function
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
- }
-
- var proto = {};
- Object.defineProperty(proto, "length", {
- set: function () { },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child[0] = 11;
- child[1] = 12;
-
- return Array.prototype.reduceRight.call(child, callbackfn, 111) === 111 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to the Array-like object that
+ 'length' is inherited accessor property without a get function
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
+
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ set: function () { },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 11;
+ child[1] = 12;
+
+ return Array.prototype.reduceRight.call(child, callbackfn, 111) === 111 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.js
index 5d8555433..7094bd6b9 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-14.js
- * @description Array.prototype.reduceRight applied to the Array-like object that 'length' property doesn't exist
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return curVal > 10;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 111) === 111 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to the Array-like object that
+ 'length' property doesn't exist
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return curVal > 10;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 111) === 111 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-15.js
index 2075dd293..1d994e269 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-15.js
@@ -1,35 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-15.js
- * @description Array.prototype.reduceRight - 'length' is property of the global object
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === fnGlobalObject().length;
- }
-
- try {
- var oldLen = fnGlobalObject().length;
- fnGlobalObject()[0] = 12;
- fnGlobalObject()[1] = 11;
- fnGlobalObject()[2] = 9;
- fnGlobalObject().length = 2;
- return Array.prototype.reduceRight.call(fnGlobalObject(), callbackfn, 111) && accessed;
- } finally {
- delete fnGlobalObject()[0];
- delete fnGlobalObject()[1];
- delete fnGlobalObject()[2];
- fnGlobalObject().length = oldLen;
- }
- }
-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: >
+ Array.prototype.reduceRight - 'length' is property of the global
+ object
+includes:
+ - runTestCase.js
+ - fnGlobalObject.js
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === fnGlobalObject().length;
+ }
+
+ try {
+ var oldLen = fnGlobalObject().length;
+ fnGlobalObject()[0] = 12;
+ fnGlobalObject()[1] = 11;
+ fnGlobalObject()[2] = 9;
+ fnGlobalObject().length = 2;
+ return Array.prototype.reduceRight.call(fnGlobalObject(), callbackfn, 111) && accessed;
+ } finally {
+ delete fnGlobalObject()[0];
+ delete fnGlobalObject()[1];
+ delete fnGlobalObject()[2];
+ fnGlobalObject().length = oldLen;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-17.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-17.js
index 7e96d260d..0323f43a8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-17.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-17.js
@@ -1,29 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-17.js
- * @description Array.prototype.reduceRight applied to the Arguments object, which implements its own property get method
- */
-
-
-function testcase() {
-
- var arg;
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- var func = function (a, b) {
- arg = arguments;
- return Array.prototype.reduceRight.call(arguments, callbackfn, 11);
- };
-
- return func(12, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to the Arguments object, which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arg;
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ var func = function (a, b) {
+ arg = arguments;
+ return Array.prototype.reduceRight.call(arguments, callbackfn, 11);
+ };
+
+ return func(12, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-18.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-18.js
index 793799a66..c19ec8bf5 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-18.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-18.js
@@ -1,29 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-18.js
- * @description Array.prototype.reduceRight applied to String object, which implements its own property get method
- */
-
-
-function testcase() {
-
- var accessed = false;
- var str = new String("432");
-
- function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 3;
- }
-
- try {
- String.prototype[3] = "1";
- return Array.prototype.reduceRight.call(str, callbackfn, 111) && accessed;
- } finally {
- delete String.prototype[3];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight applied to String object, which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var str = new String("432");
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 3;
+ }
+
+ try {
+ String.prototype[3] = "1";
+ return Array.prototype.reduceRight.call(str, callbackfn, 111) && accessed;
+ } finally {
+ delete String.prototype[3];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-19.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-19.js
index f46a4b6d7..51e1f6d9e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-19.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-19.js
@@ -1,29 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-19.js
- * @description Array.prototype.reduceRight applied to Function object, which implements its own property get method
- */
-
-
-function testcase() {
-
- var accessed = false;
- var fun = function (a, b) {
- return a + b;
- };
- fun[0] = 12;
- fun[1] = 11;
- fun[2] = 9;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- return Array.prototype.reduceRight.call(fun, callbackfn, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Function object, which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var fun = function (a, b) {
+ return a + b;
+ };
+ fun[0] = 12;
+ fun[1] = 11;
+ fun[2] = 9;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ return Array.prototype.reduceRight.call(fun, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-2.js
index a2fef0ae8..5563cdd57 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-2.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-2.js
- * @description Array.prototype.reduceRight - 'length' is own data property on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- return [12, 11].reduceRight(callbackfn, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight - 'length' is own data property on an
+ Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ return [12, 11].reduceRight(callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-3.js
index 16d3ed7b8..75d500a68 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-3.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-3.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own data property that overrides an inherited data property
- */
-
-
-function testcase() {
-
- var accessed = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- var proto = { length: 3 };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 2;
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
-
- return Array.prototype.reduceRight.call(child, callbackfn) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own data property that overrides an inherited data property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ var proto = { length: 3 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ return Array.prototype.reduceRight.call(child, callbackfn) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-4.js
index c6f2622e3..7ef8620e3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-4.js
@@ -1,31 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-4.js
- * @description Array.prototype.reduceRight - 'length' is own data property that overrides an inherited data property on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- var arrProtoLen;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- try {
- arrProtoLen = Array.prototype.length;
- Array.prototype.length = 0;
-
- return [12, 11].reduceRight(callbackfn, 11) && accessed;
- } finally {
- Array.prototype.length = arrProtoLen;
- }
-
- }
-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: >
+ Array.prototype.reduceRight - 'length' is own data property that
+ overrides an inherited data property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var arrProtoLen;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ try {
+ arrProtoLen = Array.prototype.length;
+ Array.prototype.length = 0;
+
+ return [12, 11].reduceRight(callbackfn, 11) && accessed;
+ } finally {
+ Array.prototype.length = arrProtoLen;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-5.js
index 794f70e25..5ade6e70a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-5.js
@@ -1,43 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-5.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own data property that overrides an inherited accessor property
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- var proto = {};
- Object.defineProperty(proto, "length", {
- get: function () {
- return 3;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- Object.defineProperty(child, "length", {
- value: 2,
- configurable: true
- });
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
-
- return Array.prototype.reduceRight.call(child, callbackfn) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own data property that overrides an inherited accessor
+ property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ value: 2,
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ return Array.prototype.reduceRight.call(child, callbackfn) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-6.js
index c00248c63..177cd03fd 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-6.js
@@ -1,31 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-6.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an inherited data property
- */
-
-
-function testcase() {
-
- var accessed = false;
- var proto = { length: 2 };
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
-
- function callbackfn1(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- return Array.prototype.reduceRight.call(child, callbackfn1, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an inherited data property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var proto = { length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ return Array.prototype.reduceRight.call(child, callbackfn1, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-7.js
index 46b12008b..94a489ce7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-7.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-7.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own accessor property
- */
-
-
-function testcase() {
-
- var accessed = true;
- var obj = {};
- obj[0] = 12;
- obj[1] = 11;
- obj[2] = 9;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own accessor property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = true;
+ var obj = {};
+ obj[0] = 12;
+ obj[1] = 11;
+ obj[2] = 9;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-8.js
index f955ad6d7..fc3783ee1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-8.js
@@ -1,41 +1,44 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-8.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own accessor property that overrides an inherited data property
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- var proto = { length: 3 };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
-
- Object.defineProperty(child, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
-
- return Array.prototype.reduceRight.call(child, callbackfn, 11) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own accessor property that overrides an inherited data
+ property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ var proto = { length: 3 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ return Array.prototype.reduceRight.call(child, callbackfn, 11) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-9.js
index c5958db58..292bb6563 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-9.js
@@ -1,45 +1,48 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-2-9.js
- * @description Array.prototype.reduceRight applied to Array-like object, 'length' is an own accessor property that overrides an inherited accessor property
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn1(prevVal, curVal, idx, obj) {
- accessed = true;
- return obj.length === 2;
- }
-
- var proto = {};
- Object.defineProperty(proto, "length", {
- get: function () {
- return 3;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- Object.defineProperty(child, "length", {
- get: function () {
- return 2;
- },
- configurable: true
- });
- child[0] = 12;
- child[1] = 11;
- child[2] = 9;
-
- return Array.prototype.reduceRight.call(child, callbackfn1, 111) && accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to Array-like object, 'length'
+ is an own accessor property that overrides an inherited accessor
+ property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return obj.length === 2;
+ }
+
+ var proto = {};
+ Object.defineProperty(proto, "length", {
+ get: function () {
+ return 3;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ Object.defineProperty(child, "length", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+ child[0] = 12;
+ child[1] = 11;
+ child[2] = 9;
+
+ return Array.prototype.reduceRight.call(child, callbackfn1, 111) && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-1.js
index 46c8c3276..532839e60 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-1.js
@@ -1,24 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-1.js
- * @description Array.prototype.reduceRight - value of 'length' is undefined
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: undefined };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: Array.prototype.reduceRight - value of 'length' is undefined
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: undefined };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-10.js
index e0642b318..96a1860d7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-10.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-10.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is NaN)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: NaN };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is NaN)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: NaN };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-11.js
index 0319ef799..f7d5de410 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-11.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-11.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing a positive number
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing a positive number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2" };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-12.js
index 411240b4a..016f995a7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-12.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-12.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing a negative number
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing a negative number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 11, 1: 12, 2: 9, length: "-4294967294" };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-13.js
index 5b2f3a1aa..0b982b030 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-13.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-13.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing a decimal number
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing a decimal number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2.5" };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js
index 1d95beeb3..ef3d3e29f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js
@@ -1,39 +1,41 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-14.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing +/-Infinity
- */
-
-
-function testcase() {
-
- var accessed1 = false;
- var accessed2 = false;
- var accessed3 = false;
-
- function callbackfn1(prevVal, curVal, idx, obj) {
- accessed1 = true;
- }
-
- function callbackfn2(prevVal, curVal, idx, obj) {
- accessed2 = true;
- }
-
- function callbackfn3(prevVal, curVal, idx, obj) {
- accessed3 = true;
- }
-
- var obj1 = { 0: 9, length: "Infinity" };
- var obj2 = { 0: 9, length: "-Infinity" };
- var obj3 = { 0: 9, length: "+Infinity" };
-
- return Array.prototype.reduceRight.call(obj1, callbackfn1, 1) === 1 &&
- Array.prototype.reduceRight.call(obj2, callbackfn2, 2) === 2 &&
- Array.prototype.reduceRight.call(obj3, callbackfn3, 3) === 3 &&
- !accessed1 && !accessed2 && !accessed3;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing +/-Infinity
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed1 = false;
+ var accessed2 = false;
+ var accessed3 = false;
+
+ function callbackfn1(prevVal, curVal, idx, obj) {
+ accessed1 = true;
+ }
+
+ function callbackfn2(prevVal, curVal, idx, obj) {
+ accessed2 = true;
+ }
+
+ function callbackfn3(prevVal, curVal, idx, obj) {
+ accessed3 = true;
+ }
+
+ var obj1 = { 0: 9, length: "Infinity" };
+ var obj2 = { 0: 9, length: "-Infinity" };
+ var obj3 = { 0: 9, length: "+Infinity" };
+
+ return Array.prototype.reduceRight.call(obj1, callbackfn1, 1) === 1 &&
+ Array.prototype.reduceRight.call(obj2, callbackfn2, 2) === 2 &&
+ Array.prototype.reduceRight.call(obj3, callbackfn3, 3) === 3 &&
+ !accessed1 && !accessed2 && !accessed3;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-15.js
index ce93034aa..5b7472d29 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-15.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-15.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing an exponential number
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing an exponential number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 12, 1: 11, 2: 9, length: "2E0" };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-16.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-16.js
index 5dc1e8bbd..8cc89cd07 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-16.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-16.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-16.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing a hex number
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing a hex number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 12, 1: 11, 2: 9, length: "0x0002" };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-17.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-17.js
index 54d7eed7e..f0dedeb62 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-17.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-17.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-17.js
- * @description Array.prototype.reduceRight - value of 'length' is a string containing a number with leading zeros
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string
+ containing a number with leading zeros
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 12, 1: 11, 2: 9, length: "0002.00" };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-18.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-18.js
index ef67c7465..b8222544a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-18.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-18.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-18.js
- * @description Array.prototype.reduceRight - value of 'length' is a string that can't convert to a number
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, 1: 8, length: "two" };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 11) === 11 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a string that
+ can't convert to a number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, 1: 8, length: "two" };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 11) === 11 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-19.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-19.js
index f213210af..4589c9ad9 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-19.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-19.js
@@ -1,49 +1,51 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-19.js
- * @description Array.prototype.reduceRight - value of 'length' is an object which has an own toString method
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var toStringAccessed = false;
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- toString: function () {
- toStringAccessed = true;
- return '2';
- }
- }
- };
-
- // objects inherit the default valueOf() method from Object
- // that simply returns itself. Since the default valueOf() method
- // does not return a primitive value, ES next tries to convert the object
- // to a number by calling its toString() method and converting the
- // resulting string to a number.
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2 && toStringAccessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is an object which
+ has an own toString method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var toStringAccessed = false;
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
+
+ // objects inherit the default valueOf() method from Object
+ // that simply returns itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2 && toStringAccessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-2.js
index 6eaa57e22..6fbda57e8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-2.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-2.js
- * @description Array.prototype.reduceRight applied to an Array-like object, 'length' is 0 (length overridden to false(type conversion))
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: false };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight applied to an Array-like object,
+ 'length' is 0 (length overridden to false(type conversion))
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: false };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-20.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-20.js
index 8c024730a..56f20a77f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-20.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-20.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-20.js
- * @description Array.prototype.reduceRight - value of 'length' is an Object which has an own valueOf method
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var valueOfAccessed = false;
-
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function () {
- valueOfAccessed = true;
- return 2;
- }
- }
- };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2 && valueOfAccessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is an Object which
+ has an own valueOf method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var valueOfAccessed = false;
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ }
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2 && valueOfAccessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-21.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-21.js
index b29fe62b4..b1ce76af7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-21.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-21.js
@@ -1,49 +1,52 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-21.js
- * @description Array.prototype.reduceRight - 'length' is an object that has an own valueOf method that returns an object and toString method that returns a string
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var toStringAccessed = false;
- var valueOfAccessed = false;
-
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: {
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- },
- toString: function () {
- toStringAccessed = true;
- return '2';
- }
- }
- };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2 && valueOfAccessed && toStringAccessed;
- }
-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: >
+ Array.prototype.reduceRight - 'length' is an object that has an
+ own valueOf method that returns an object and toString method that
+ returns a string
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return '2';
+ }
+ }
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2 && valueOfAccessed && toStringAccessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-22.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-22.js
index 51351be4e..f62619c9c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-22.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-22.js
@@ -1,45 +1,48 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-22.js
- * @description Array.prototype.reduceRight throws TypeError exception when 'length' is an object with toString and valueOf methods that don�t return primitive values
- */
-
-
-function testcase() {
-
- var accessed = false;
- var toStringAccessed = false;
- var valueOfAccessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = {
- 0: 11,
- 1: 12,
-
- length: {
- valueOf: function () {
- valueOfAccessed = true;
- return {};
- },
- toString: function () {
- toStringAccessed = true;
- return {};
- }
- }
- };
-
- try {
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return false;
- } catch (ex) {
- return (ex instanceof TypeError) && toStringAccessed && valueOfAccessed && !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight throws TypeError exception when
+ 'length' is an object with toString and valueOf methods that don�t
+ return primitive values
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var toStringAccessed = false;
+ var valueOfAccessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = {
+ 0: 11,
+ 1: 12,
+
+ length: {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return {};
+ },
+ toString: function () {
+ toStringAccessed = true;
+ return {};
+ }
+ }
+ };
+
+ try {
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return false;
+ } catch (ex) {
+ return (ex instanceof TypeError) && toStringAccessed && valueOfAccessed && !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-23.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-23.js
index a9be94a16..fdacbb8bd 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-23.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-23.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-23.js
- * @description Array.prototype.reduceRight uses inherited valueOf method when 'length' is an object with an own toString and inherited valueOf methods
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- var valueOfAccessed = false;
- var toStringAccessed = false;
-
- var proto = {
- valueOf: function () {
- valueOfAccessed = true;
- return 2;
- }
- };
- var Con = function () { };
- Con.prototype = proto;
- var child = new Con();
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- child.toString = function () {
- toStringAccessed = true;
- return '1';
- };
-
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: child
- };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2 && valueOfAccessed && !toStringAccessed;
- }
-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: >
+ Array.prototype.reduceRight uses inherited valueOf method when
+ 'length' is an object with an own toString and inherited valueOf
+ methods
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ var valueOfAccessed = false;
+ var toStringAccessed = false;
+
+ var proto = {
+ valueOf: function () {
+ valueOfAccessed = true;
+ return 2;
+ }
+ };
+ var Con = function () { };
+ Con.prototype = proto;
+ var child = new Con();
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ child.toString = function () {
+ toStringAccessed = true;
+ return '1';
+ };
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: child
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2 && valueOfAccessed && !toStringAccessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-24.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-24.js
index 98f547082..144239f7c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-24.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-24.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-24.js
- * @description Array.prototype.reduceRight - value of 'length' is a positive non-integer, ensure truncation occurs in the proper direction
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a positive
+ non-integer, ensure truncation occurs in the proper direction
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 0: 12, 1: 11, 2: 9, length: 2.685 };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-25.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-25.js
index 3970cdda6..35ee32ee6 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-25.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-25.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-25.js
- * @description Array.prototype.reduceRight - value of 'length' is a negative non-integer, ensure truncation occurs in the proper direction
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = {
- 0: 12,
- 1: 11,
- 2: 9,
- length: -4294967294.5
- };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a negative
+ non-integer, ensure truncation occurs in the proper direction
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = {
+ 0: 12,
+ 1: 11,
+ 2: 9,
+ length: -4294967294.5
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-28.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-28.js
index 6dbd9127f..aff658540 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-28.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-28.js
@@ -1,27 +1,29 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-28.js
- * @description Array.prototype.reduceRight - value of 'length' is boundary value (2^32)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = {
- 0: 12,
- length: 4294967296
- };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is boundary value
+ (2^32)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = {
+ 0: 12,
+ length: 4294967296
+ };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-29.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-29.js
index 8f351eb68..f5e234e57 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-29.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-29.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-29.js
- * @description Array.prototype.reduceRight - value of 'length' is boundary value (2^32 + 1)
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 0) {
- testResult1 = false;
- }
-
- if (idx === 0) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = {
- 0: 11,
- 1: 9,
- length: 4294967297
- };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is boundary value
+ (2^32 + 1)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 0) {
+ testResult1 = false;
+ }
+
+ if (idx === 0) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = {
+ 0: 11,
+ 1: 9,
+ length: 4294967297
+ };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-3.js
index 4ca0d26f7..19f21e224 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-3.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-3.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is 0)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: 0 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is 0)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: 0 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-4.js
index 683794867..b7fd4ce9d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-4.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-4.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is +0)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: +0 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is +0)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: +0 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-5.js
index aed29d3a0..95d8e4eb1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-5.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-5.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is -0)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: -0 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is -0)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: -0 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-6.js
index ef1f4ddea..8d93b6a76 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-6.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-6.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is positive)
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 1: 11, 2: 9, length: 2 };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is positive)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 1: 11, 2: 9, length: 2 };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-7.js
index 82ee2aad7..ae76446b4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-7.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-7.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is negative)
- */
-
-
-function testcase() {
-
- var testResult1 = true;
- var testResult2 = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx > 1) {
- testResult1 = false;
- }
-
- if (idx === 1) {
- testResult2 = true;
- }
- return false;
- }
-
- var obj = { 1: 11, 2: 9, length: -4294967294 };
-
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return testResult1 && testResult2;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is negative)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult1 = true;
+ var testResult2 = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx > 1) {
+ testResult1 = false;
+ }
+
+ if (idx === 1) {
+ testResult2 = true;
+ }
+ return false;
+ }
+
+ var obj = { 1: 11, 2: 9, length: -4294967294 };
+
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return testResult1 && testResult2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-8.js
index 387c9ece7..888172c1f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-8.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-8.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is Infinity)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: Infinity };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is Infinity)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: Infinity };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-9.js
index 7d4e0e23a..15b6b4d4b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-9.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-3-9.js
- * @description Array.prototype.reduceRight - value of 'length' is a number (value is -Infinity)
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- }
-
- var obj = { 0: 9, length: -Infinity };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
- }
-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: >
+ Array.prototype.reduceRight - value of 'length' is a number (value
+ is -Infinity)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ }
+
+ var obj = { 0: 9, length: -Infinity };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === 1 && !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-1.js
index 409c912ee..b0d3a6577 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-1.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-1.js
- * @description Array.prototype.reduceRight throws TypeError if callbackfn is undefined
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight();
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if callbackfn is
+ undefined
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight();
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-10.js
index 3bcf048b3..bd6d6c1cb 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-10.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-10.js
- * @description Array.prototype.reduceRight - the exception is not thrown if exception was thrown by step 2
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- Object.defineProperty(obj, "length", {
- get: function () {
- throw new SyntaxError();
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, undefined);
- 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: >
+ Array.prototype.reduceRight - the exception is not thrown if
+ exception was thrown by step 2
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new SyntaxError();
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, undefined);
+ return false;
+ } catch (ex) {
+ return !(ex instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-11.js
index cdaf9efb9..736111010 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-11.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-11.js
- * @description Array.prototype.reduceRight - the exception is not thrown if exception was thrown by step 3
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- toString: function () {
- throw new SyntaxError();
- }
- };
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, undefined);
- 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: >
+ Array.prototype.reduceRight - the exception is not thrown if
+ exception was thrown by step 3
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new SyntaxError();
+ }
+ };
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, undefined);
+ return false;
+ } catch (ex) {
+ return !(ex instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-12.js
index 1b2c744bb..28075300d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-12.js
@@ -1,22 +1,22 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-12.js
- * @description Array.prototype.reduceRight - 'callbackfn' is a function
- */
-
-
-function testcase() {
-
- var initialValue = 0;
- function callbackfn(accum, val, idx, obj) {
- accum += val;
- return accum;
- }
-
- return 20 === [11, 9].reduceRight(callbackfn, initialValue);
- }
-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: Array.prototype.reduceRight - 'callbackfn' is a function
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var initialValue = 0;
+ function callbackfn(accum, val, idx, obj) {
+ accum += val;
+ return accum;
+ }
+
+ return 20 === [11, 9].reduceRight(callbackfn, initialValue);
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-15.js
index 52b2844f6..1d8618acc 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-15.js
@@ -1,39 +1,41 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-15.js
- * @description Array.prototype.reduceRight - calling with no callbackfn is the same as passing undefined for callbackfn
- */
-
-
-function testcase() {
- var obj = { 10: 10 };
- var lengthAccessed = false;
- var loopAccessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- lengthAccessed = true;
- return 20;
- },
- configurable: true
- });
- Object.defineProperty(obj, "0", {
- get: function () {
- loopAccessed = true;
- return 10;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, undefined);
- return false;
- } catch (ex) {
- return (ex instanceof TypeError) && lengthAccessed && !loopAccessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - calling with no callbackfn is the
+ same as passing undefined for callbackfn
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var obj = { 10: 10 };
+ var lengthAccessed = false;
+ var loopAccessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ lengthAccessed = true;
+ return 20;
+ },
+ configurable: true
+ });
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ loopAccessed = true;
+ return 10;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, undefined);
+ return false;
+ } catch (ex) {
+ return (ex instanceof TypeError) && lengthAccessed && !loopAccessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-2.js
index b911f2c94..f0924c932 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-2.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-2.js
- * @description Array.prototype.reduceRight throws ReferenceError if callbackfn is unreferenced
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight(foo);
- }
- catch(e) {
- if(e instanceof ReferenceError)
- 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: >
+ Array.prototype.reduceRight throws ReferenceError if callbackfn is
+ unreferenced
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight(foo);
+ }
+ catch(e) {
+ if(e instanceof ReferenceError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-3.js
index 4f8a2f834..49f82cb3f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-3.js
@@ -1,24 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-3.js
- * @description Array.prototype.reduceRight throws TypeError if callbackfn is null
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight(null);
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight throws TypeError if callbackfn is null
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight(null);
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-4.js
index 6df3bb6ce..dd4d4efc1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-4.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-4.js
- * @description Array.prototype.reduceRight throws TypeError if callbackfn is boolean
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight(true);
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if callbackfn is
+ boolean
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight(true);
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-5.js
index 6c16990a9..c31926498 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-5.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-5.js
- * @description Array.prototype.reduceRight throws TypeError if callbackfn is number
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight(5);
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if callbackfn is
+ number
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight(5);
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-6.js
index a80120bb5..b06cf8e5b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-6.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-6.js
- * @description Array.prototype.reduceRight throws TypeError if callbackfn is string
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight("abc");
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if callbackfn is
+ string
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight("abc");
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-7.js
index 6baa0fab9..56d1a88b2 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-7.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-7.js
- * @description Array.prototype.reduceRight throws TypeError if callbackfn is Object without [[Call]] internal method
- */
-
-
-function testcase() {
-
- var arr = new Array(10);
- try {
- arr.reduceRight(new Object());
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if callbackfn is
+ Object without [[Call]] internal method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight(new Object());
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-8.js
index 05e7beef8..35f5ec164 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-8.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-8.js
- * @description Array.prototype.reduceRight - side effects produced by step 2 are visible when an exception occurs
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- var accessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- accessed = true;
- return 2;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, null);
- return false;
- } catch (ex) {
- return ex instanceof TypeError && accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - side effects produced by step 2 are
+ visible when an exception occurs
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ var accessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, null);
+ return false;
+ } catch (ex) {
+ return ex instanceof TypeError && accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-9.js
index 445f4c514..4313ca3ff 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-9.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-4-9.js
- * @description Array.prototype.reduceRight - side effects produced by step 3 are visible when an exception occurs
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- var accessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- toString: function () {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, null);
- return false;
- } catch (ex) {
- return ex instanceof TypeError && accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - side effects produced by step 3 are
+ visible when an exception occurs
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ var accessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, null);
+ return false;
+ } catch (ex) {
+ return ex instanceof TypeError && accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-1.js
index c83cf38c3..33d3e7b1b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-1.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-1.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (empty array), no initVal
- */
-
-
-function testcase() {
- function cb(){}
-
- try {
- [].reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (empty array), no initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function cb(){}
+
+ try {
+ [].reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-10.js
index 78db4456b..6356251a4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-10.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-10.js
- * @description Array.prototype.reduceRight - side-effects produced by step 2 when an exception occurs
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- var accessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- accessed = true;
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- return false;
- } catch (ex) {
- return (ex instanceof TypeError) && accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - side-effects produced by step 2 when
+ an exception occurs
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ var accessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return (ex instanceof TypeError) && accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-11.js
index c063bad6e..e064919e5 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-11.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-11.js
- * @description Array.prototype.reduceRight - side-effects produced by step 3 when an exception occurs
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- var accessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- toString: function () {
- accessed = true;
- return "0";
- }
- };
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- return false;
- } catch (ex) {
- return (ex instanceof TypeError) && accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - side-effects produced by step 3 when
+ an exception occurs
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ var accessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "0";
+ }
+ };
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return (ex instanceof TypeError) && accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-12.js
index bd353e8bc..a4f0fff11 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-12.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-12.js
- * @description Array.prototype.reduceRight - the exception is not thrown if exception was thrown by step 2
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- Object.defineProperty(obj, "length", {
- get: function () {
- throw new SyntaxError();
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- 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: >
+ Array.prototype.reduceRight - the exception is not thrown if
+ exception was thrown by step 2
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new SyntaxError();
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return !(ex instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-13.js
index 722bc2b6a..a4a8fe847 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-13.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-13.js
- * @description Array.prototype.reduceRight - the exception is not thrown if exception was thrown by step 3
- */
-
-
-function testcase() {
-
- var obj = { 0: 11, 1: 12 };
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- toString: function () {
- throw new SyntaxError();
- }
- };
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- 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: >
+ Array.prototype.reduceRight - the exception is not thrown if
+ exception was thrown by step 3
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 0: 11, 1: 12 };
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new SyntaxError();
+ }
+ };
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return !(ex instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-2.js
index bccba97fb..58e67a53e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-2.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-2.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden to null (type conversion)), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden to null (type conversion)),
+ no initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-3.js
index d8ed96daf..7dd17314e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-3.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-3.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden to false (type conversion)), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden to false (type conversion)),
+ no initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-4.js
index 3c069572c..9c31bf037 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-4.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-4.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden to 0 (type conversion)), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden to 0 (type conversion)), no
+ initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-5.js
index 0e678206c..f8fb0147d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-5.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-5.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden to '0' (type conversion)), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden to '0' (type conversion)), no
+ initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-6.js
index 56bc398af..6a72c83be 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-6.js
@@ -1,30 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-6.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden with obj with valueOf), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- var o = { valueOf: function () { return 0;}};
- f.length = o;
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden with obj with valueOf), no
+ initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js
index 3bb6b2447..8f8c1ad4c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js
@@ -1,36 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-7.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden with obj w/o valueOf (toString)), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- var o = { toString: function () { return '0';}};
- f.length = o;
-
- // objects inherit the default valueOf method of the Object object;
- // that simply returns the itself. Since the default valueOf() method
- // does not return a primitive value, ES next tries to convert the object
- // to a number by calling its toString() method and converting the
- // resulting string to a number.
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden with obj w/o valueOf
+ (toString)), no initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ var o = { toString: function () { return '0';}};
+ f.length = o;
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-8.js
index b705b6073..20e8d55f6 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-8.js
@@ -1,43 +1,45 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-8.js
- * @description Array.prototype.reduceRight throws TypeError if 'length' is 0 (subclassed Array, length overridden with []), no initVal
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- f.length = [];
-
- // objects inherit the default valueOf method of the Object object;
- // that simply returns the itself. Since the default valueOf() method
- // does not return a primitive value, ES next tries to convert the object
- // to a number by calling its toString() method and converting the
- // resulting string to a number.
- //
- // The toString( ) method on Array converts the array elements to strings,
- // then returns the result of concatenating these strings, with commas in
- // between. An array with no elements converts to the empty string, which
- // converts to the number 0. If an array has a single element that is a
- // number n, the array converts to a string representation of n, which is
- // then converted back to n itself. If an array contains more than one element,
- // or if its one element is not a number, the array converts to NaN.
-
- function cb(){}
- try {
- f.reduceRight(cb);
- }
- catch (e) {
- if (e instanceof TypeError) {
- return true;
- }
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError if 'length' is 0
+ (subclassed Array, length overridden with []), no initVal
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ try {
+ f.reduceRight(cb);
+ }
+ catch (e) {
+ if (e instanceof TypeError) {
+ return true;
+ }
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-9.js
index 6207502d1..0d98ceb74 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-9.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-5-9.js
- * @description Array.prototype.reduceRight - 'initialValue' is returned if 'len' is 0 and 'initialValue' is present
- */
-
-
-function testcase() {
-
- var initialValue = 10;
- return initialValue === [].reduceRight(function () { }, initialValue);
- }
-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: >
+ Array.prototype.reduceRight - 'initialValue' is returned if 'len'
+ is 0 and 'initialValue' is present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var initialValue = 10;
+ return initialValue === [].reduceRight(function () { }, initialValue);
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-1.js
index 7c222d596..e3b3734ce 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-1.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (empty array)
- */
-
-
-function testcase() {
- function cb(){}
-
- try {
- if([].reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (empty array)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function cb(){}
+
+ try {
+ if([].reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-10.js
index 794e03a2d..713688ee3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-10.js
@@ -1,17 +1,17 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-10.js
- * @description Array.prototype.reduceRight - 'initialValue' is present
- */
-
-
-function testcase() {
-
- var str = "initialValue is present";
- return str === [].reduceRight(function () { }, str);
- }
-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: Array.prototype.reduceRight - 'initialValue' is present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var str = "initialValue is present";
+ return str === [].reduceRight(function () { }, str);
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-11.js
index f3df3a4ec..0dc9b532d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-11.js
@@ -1,17 +1,17 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-11.js
- * @description Array.prototype.reduceRight - 'initialValue' is not present
- */
-
-
-function testcase() {
-
- var str = "initialValue is not present";
- return str === [str].reduceRight(function () { });
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight - 'initialValue' is not present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var str = "initialValue is not present";
+ return str === [str].reduceRight(function () { });
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-2.js
index 054a6e5f8..e7a3cd707 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-2.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-2.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden to null (type conversion))
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = null;
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ to null (type conversion))
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = null;
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-3.js
index 620f445fb..44d09c077 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-3.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-3.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden to false (type conversion))
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = false;
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ to false (type conversion))
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = false;
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-4.js
index e2d28acdf..ad17a044c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-4.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-4.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden to 0 (type conversion))
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = 0;
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ to 0 (type conversion))
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = 0;
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-5.js
index 363238454..3906aa154 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-5.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-5.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden to '0' (type conversion))
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
- f.length = '0';
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ to '0' (type conversion))
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+ f.length = '0';
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-6.js
index 4182e8ba7..161e5535e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-6.js
@@ -1,27 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-6.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden with obj with valueOf)
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- var o = { valueOf: function () { return 0;}};
- f.length = o;
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ with obj with valueOf)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ var o = { valueOf: function () { return 0;}};
+ f.length = o;
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-7.js
index 697e6e2a7..551fa861c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-7.js
@@ -1,33 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-7.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden with obj w/o valueOf (toString))
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- var o = { toString: function () { return '0';}};
- f.length = o;
-
- // objects inherit the default valueOf method of the Object object;
- // that simply returns the itself. Since the default valueOf() method
- // does not return a primitive value, ES next tries to convert the object
- // to a number by calling its toString() method and converting the
- // resulting string to a number.
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ with obj w/o valueOf (toString))
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ var o = { toString: function () { return '0';}};
+ f.length = o;
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-8.js
index e0da31787..771fc72ef 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-8.js
@@ -1,40 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-8.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden with [])
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- f.length = [];
-
- // objects inherit the default valueOf method of the Object object;
- // that simply returns the itself. Since the default valueOf() method
- // does not return a primitive value, ES next tries to convert the object
- // to a number by calling its toString() method and converting the
- // resulting string to a number.
- //
- // The toString( ) method on Array converts the array elements to strings,
- // then returns the result of concatenating these strings, with commas in
- // between. An array with no elements converts to the empty string, which
- // converts to the number 0. If an array has a single element that is a
- // number n, the array converts to a string representation of n, which is
- // then converted back to n itself. If an array contains more than one element,
- // or if its one element is not a number, the array converts to NaN.
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ with [])
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-9.js
index 311b7fec4..3bf24732b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-9.js
@@ -1,40 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-7-9.js
- * @description Array.prototype.reduceRight returns initialValue if 'length' is 0 and initialValue is present (subclassed Array, length overridden with [0])
- */
-
-
-function testcase() {
- foo.prototype = new Array(1, 2, 3);
- function foo() {}
- var f = new foo();
-
- f.length = [0];
-
- // objects inherit the default valueOf method of the Object object;
- // that simply returns the itself. Since the default valueOf() method
- // does not return a primitive value, ES next tries to convert the object
- // to a number by calling its toString() method and converting the
- // resulting string to a number.
- //
- // The toString( ) method on Array converts the array elements to strings,
- // then returns the result of concatenating these strings, with commas in
- // between. An array with no elements converts to the empty string, which
- // converts to the number 0. If an array has a single element that is a
- // number n, the array converts to a string representation of n, which is
- // then converted back to n itself. If an array contains more than one element,
- // or if its one element is not a number, the array converts to NaN.
-
- function cb(){}
- try {
- if(f.reduceRight(cb,1) === 1)
- 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: >
+ Array.prototype.reduceRight returns initialValue if 'length' is 0
+ and initialValue is present (subclassed Array, length overridden
+ with [0])
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ foo.prototype = new Array(1, 2, 3);
+ function foo() {}
+ var f = new foo();
+
+ f.length = [0];
+
+ // objects inherit the default valueOf method of the Object object;
+ // that simply returns the itself. Since the default valueOf() method
+ // does not return a primitive value, ES next tries to convert the object
+ // to a number by calling its toString() method and converting the
+ // resulting string to a number.
+ //
+ // The toString( ) method on Array converts the array elements to strings,
+ // then returns the result of concatenating these strings, with commas in
+ // between. An array with no elements converts to the empty string, which
+ // converts to the number 0. If an array has a single element that is a
+ // number n, the array converts to a string representation of n, which is
+ // then converted back to n itself. If an array contains more than one element,
+ // or if its one element is not a number, the array converts to NaN.
+
+ function cb(){}
+ try {
+ if(f.reduceRight(cb,1) === 1)
+ return true;
+ }
+ catch (e) { }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-1.js
index b8276e345..ca3be064b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-1.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-1.js
- * @description Array.prototype.reduceRight - no observable effects occur if 'len' is 0
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- var obj = { length: 0 };
-
- Object.defineProperty(obj, "0", {
- get: function () {
- accessed = true;
- return 10;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- return false;
- } catch (ex) {
- return !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - no observable effects occur if 'len'
+ is 0
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ var obj = { length: 0 };
+
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-2.js
index b5f350168..c446d0b93 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-2.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-2.js
- * @description Array.prototype.reduceRight - modifications to length don't change number of iterations in step 9
- */
-
-
-function testcase() {
- var called = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- called++;
- return prevVal + curVal;
- }
-
- var arr = [0, 1, 2, 3];
- Object.defineProperty(arr, "4", {
- get: function () {
- arr.length = 2;
- return 10;
- },
- configurable: true
- });
-
- var preVal = arr.reduceRight(callbackfn);
-
- return preVal === 11 && called === 2;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - modifications to length don't change
+ number of iterations in step 9
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var called = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ called++;
+ return prevVal + curVal;
+ }
+
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 2;
+ return 10;
+ },
+ configurable: true
+ });
+
+ var preVal = arr.reduceRight(callbackfn);
+
+ return preVal === 11 && called === 2;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-3.js
index be8f95077..5b4321e57 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-3.js
@@ -1,48 +1,50 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-3.js
- * @description Array.prototype.reduceRight - while loop is breaken once 'kPresent' is true
- */
-
-
-function testcase() {
-
- var called = 0;
- var testResult = false;
- var firstCalled = 0;
- var secondCalled = 0;
-
- function callbackfn(prevVal, val, idx, obj) {
- if (called === 0) {
- testResult = (idx === 1);
- }
- called++;
- }
-
- var arr = [, , , ];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- firstCalled++;
- return 9;
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "2", {
- get: function () {
- secondCalled++;
- return 11;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
-
- return testResult && firstCalled === 1 && secondCalled === 1;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - while loop is breaken once
+ 'kPresent' is true
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var called = 0;
+ var testResult = false;
+ var firstCalled = 0;
+ var secondCalled = 0;
+
+ function callbackfn(prevVal, val, idx, obj) {
+ if (called === 0) {
+ testResult = (idx === 1);
+ }
+ called++;
+ }
+
+ var arr = [, , , ];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ firstCalled++;
+ return 9;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ secondCalled++;
+ return 11;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+
+ return testResult && firstCalled === 1 && secondCalled === 1;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js
index c688a1549..c0790f007 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js
@@ -1,28 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-1.js
- * @description Array.prototype.reduceRight - added properties in step 2 are visible here
- */
-
-
-function testcase() {
-
- var obj = {};
-
- function callbackfn(prevVal, curVal, idx, obj) { }
-
- Object.defineProperty(obj, "length", {
- get: function () {
- obj[2] = "accumulator";
- return 3;
- },
- configurable: true
- });
-
- return Array.prototype.reduceRight.call(obj, callbackfn) === "accumulator";
- }
-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: >
+ Array.prototype.reduceRight - added properties in step 2 are
+ visible here
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = {};
+
+ function callbackfn(prevVal, curVal, idx, obj) { }
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "accumulator";
+ return 3;
+ },
+ configurable: true
+ });
+
+ return Array.prototype.reduceRight.call(obj, callbackfn) === "accumulator";
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-2.js
index 1d62a1491..830b63947 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-2.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-ii-2.js
- * @description Array.prototype.reduceRight - deleted properties in step 2 are visible here
- */
-
-
-function testcase() {
-
- var obj = { 2: "accumulator", 3: "another" };
-
- Object.defineProperty(obj, "length", {
- get: function () {
- delete obj[2];
- return 5;
- },
- configurable: true
- });
-
- return "accumulator" !== Array.prototype.reduceRight.call(obj, function () { });
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleted properties in step 2 are
+ visible here
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { 2: "accumulator", 3: "another" };
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
+
+ return "accumulator" !== Array.prototype.reduceRight.call(obj, function () { });
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-1.js
index 9f091642e..e6d46c05c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-1.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-1.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
- }
-
- var obj = { 0: 0, 1: 1, length: 2 };
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+ }
+
+ var obj = { 0: 0, 1: 1, length: 2 };
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-10.js
index 69dce91a3..5e73d2956 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-10.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-10.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property on an Array
- */
-
-
-function testcase() {
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
- }
-
- var arr = [0, 1, , 3];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
+
+ var arr = [0, 1, , 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-11.js
index 296d86b57..0eaa47b95 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-11.js
@@ -1,39 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-11.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
-
- var proto = { 0: 0, 1: 1, 2: 2 };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Object.defineProperty(child, "2", {
- get: function () {
- return "20";
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited data property on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-12.js
index e57aa01cb..b5896e057 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-12.js
@@ -1,39 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-12.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
-
- try {
- Array.prototype[2] = 2;
- var arr = [0, 1];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- return "20";
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited data property on an
+ Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ try {
+ Array.prototype[2] = 2;
+ var arr = [0, 1];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-13.js
index 467e4824f..0510575b7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-13.js
@@ -1,46 +1,49 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-13.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
-
- var proto = { 0: 0, 1: 1 };
-
- Object.defineProperty(proto, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Object.defineProperty(child, "2", {
- get: function () {
- return "20";
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited accessor property on
+ an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1 };
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-14.js
index 2905e74f3..dd6a91cfb 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-14.js
@@ -1,45 +1,48 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-14.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- var arr = [0, 1, , ];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- return "20";
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited accessor property on
+ an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var arr = [0, 1, , ];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "20";
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-15.js
index 4bceb899e..bb5b98d1f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-15.js
@@ -1,39 +1,41 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-15.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- var proto = { 0: 0, 1: 1 };
-
- Object.defineProperty(proto, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ var proto = { 0: 0, 1: 1 };
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-16.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-16.js
index c549ec9fe..48d83d7e4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-16.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-16.js
@@ -1,38 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-16.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- var arr = [0, 1, , ];
-
- arr.reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ var arr = [0, 1, , ];
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-17.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-17.js
index cbe5e91c5..c54af5b7e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-17.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-17.js
@@ -1,31 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-17.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
-
- var obj = { 0: 0, 1: 1, length: 3 };
-
- Object.defineProperty(obj, "2", {
- set: function () { },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
+
+ var obj = { 0: 0, 1: 1, length: 3 };
+
+ Object.defineProperty(obj, "2", {
+ set: function () { },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-18.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-18.js
index d93f63e02..59a2595bb 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-18.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-18.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-18.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
-
- var arr = [0, 1];
-
- Object.defineProperty(arr, "2", {
- set: function () { },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
+
+ var arr = [0, 1];
+
+ Object.defineProperty(arr, "2", {
+ set: function () { },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-19.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-19.js
index 08508f88a..ff7f50b51 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-19.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-19.js
@@ -1,37 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-19.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function that overrides an inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
-
- try {
- Object.prototype[2] = 2;
-
- var obj = { 0: 0, 1: 1, length: 3 };
- Object.defineProperty(obj, "2", {
- set: function () { },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- } finally {
- delete Object.prototype[2];
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function that overrides an
+ inherited accessor property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
+
+ try {
+ Object.prototype[2] = 2;
+
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ set: function () { },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ } finally {
+ delete Object.prototype[2];
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-2.js
index 364ec69a6..080c6cfa6 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-2.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-2.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- var arr = [0, 1, 2];
-
- arr.reduceRight(callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ var arr = [0, 1, 2];
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-20.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-20.js
index 1b5eaf3ea..281440641 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-20.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-20.js
@@ -1,36 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-20.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function that overrides an inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
-
- try {
- Array.prototype[2] = 2;
- var arr = [0, 1];
- Object.defineProperty(arr, "2", {
- set: function () { },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function that overrides an
+ inherited accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
+
+ try {
+ Array.prototype[2] = 2;
+ var arr = [0, 1];
+ Object.defineProperty(arr, "2", {
+ set: function () { },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-21.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-21.js
index 7599574d4..3c65afaf5 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-21.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-21.js
@@ -1,38 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-21.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property without a get function on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
-
- var proto = { 0: 0, 1: 1 };
-
- Object.defineProperty(proto, "2", {
- set: function () { },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property without a get function on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1 };
+
+ Object.defineProperty(proto, "2", {
+ set: function () { },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-22.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-22.js
index 6df64d3c0..cc69ddd22 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-22.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-22.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-22.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property without a get function on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof prevVal === "undefined");
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "2", {
- set: function () { },
- configurable: true
- });
-
- var arr = [0, 1, , ];
-
- arr.reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property without a get function on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof prevVal === "undefined");
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "2", {
+ set: function () { },
+ configurable: true
+ });
+
+ var arr = [0, 1, , ];
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-23.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-23.js
index 0a2b0f0b8..135277bd5 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-23.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-23.js
@@ -1,38 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-23.js
- * @description Array.prototype.reduceRight - This object is the global object which contains index property
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- try {
- var oldLen = fnGlobalObject().length;
- fnGlobalObject()[0] = 0;
- fnGlobalObject()[1] = 1;
- fnGlobalObject()[2] = 2;
- fnGlobalObject().length = 3;
-
- Array.prototype.reduceRight.call(fnGlobalObject(), callbackfn);
- return testResult;
-
- } finally {
- delete fnGlobalObject()[0];
- delete fnGlobalObject()[1];
- delete fnGlobalObject()[2];
- fnGlobalObject().length = oldLen;
- }
- }
-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: >
+ Array.prototype.reduceRight - This object is the global object
+ which contains index property
+includes:
+ - runTestCase.js
+ - fnGlobalObject.js
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ try {
+ var oldLen = fnGlobalObject().length;
+ fnGlobalObject()[0] = 0;
+ fnGlobalObject()[1] = 1;
+ fnGlobalObject()[2] = 2;
+ fnGlobalObject().length = 3;
+
+ Array.prototype.reduceRight.call(fnGlobalObject(), callbackfn);
+ return testResult;
+
+ } finally {
+ delete fnGlobalObject()[0];
+ delete fnGlobalObject()[1];
+ delete fnGlobalObject()[2];
+ fnGlobalObject().length = oldLen;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-25.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-25.js
index 48ce5f7e4..988f9b152 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-25.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-25.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-25.js
- * @description Array.prototype.reduceRight - This object is the Arguments object which implements its own property get method (number of arguments is less than number of parameters)
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (prevVal === 1);
- }
- }
-
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
- };
-
- func(0, 1);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - This object is the Arguments object
+ which implements its own property get method (number of arguments
+ is less than number of parameters)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (prevVal === 1);
+ }
+ }
+
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
+
+ func(0, 1);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-26.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-26.js
index 7e1d2fc4a..e6abe07b1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-26.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-26.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-26.js
- * @description Array.prototype.reduceRight - This object is the Arguments object which implements its own property get method (number of arguments equals number of parameters)
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
- };
-
- func(0, 1, 2);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - This object is the Arguments object
+ which implements its own property get method (number of arguments
+ equals number of parameters)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
+
+ func(0, 1, 2);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-27.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-27.js
index ff4a84088..fe9209256 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-27.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-27.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-27.js
- * @description Array.prototype.reduceRight - This object is the Arguments object which implements its own property get method (number of arguments is greater than number of parameters)
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === 3);
- }
- }
-
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn);
- };
-
- func(0, 1, 2, 3);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - This object is the Arguments object
+ which implements its own property get method (number of arguments
+ is greater than number of parameters)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === 3);
+ }
+ }
+
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn);
+ };
+
+ func(0, 1, 2, 3);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-28.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-28.js
index a62248b01..478ceddd6 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-28.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-28.js
@@ -1,27 +1,29 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-28.js
- * @description Array.prototype.reduceRight applied to String object, which implements its own property get method
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "2");
- }
- }
-
- var str = new String("012");
-
- Array.prototype.reduceRight.call(str, callbackfn);
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight applied to String object, which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "2");
+ }
+ }
+
+ var str = new String("012");
+
+ Array.prototype.reduceRight.call(str, callbackfn);
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-29.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-29.js
index 129a46c91..e021c3216 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-29.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-29.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-29.js
- * @description Array.prototype.reduceRight applied to Function object which implements its own property get method
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- var obj = function (a, b, c) {
- return a + b + c;
- };
-
- obj[0] = 0;
- obj[1] = 1;
- obj[2] = 2;
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight applied to Function object which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-3.js
index 1723e640e..5dcda666c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-3.js
@@ -1,34 +1,37 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-3.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
-
- var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child[1] = "10";
- child[2] = "20";
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited data property on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[1] = "10";
+ child[2] = "20";
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-30.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-30.js
index 7cd992f91..de886e305 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-30.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-30.js
@@ -1,45 +1,47 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-30.js
- * @description Array.prototype.reduceRight - element changed by getter on current iteration is observed in subsequent iterations on an Array
- */
-
-
-function testcase() {
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1 && prevVal === 2);
- }
- }
-
- var arr = [0];
- var preIterVisible = false;
-
- Object.defineProperty(arr, "1", {
- get: function () {
- if (preIterVisible) {
- return 1;
- } else {
- return "20";
- }
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "2", {
- get: function () {
- preIterVisible = true;
- return 2;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element changed by getter on current
+ iteration is observed in subsequent iterations on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1 && prevVal === 2);
+ }
+ }
+
+ var arr = [0];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "20";
+ }
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-31.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-31.js
index f33947869..2cbced976 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-31.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-31.js
@@ -1,45 +1,47 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-31.js
- * @description Array.prototype.reduceRight - element changed by getter on current iteration is observed subsequetly on an Array-like object
- */
-
-
-function testcase() {
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2 && curVal === 1);
- }
- }
-
- var obj = { 0: 0, length: 3 };
- var preIterVisible = false;
-
- Object.defineProperty(obj, "1", {
- get: function () {
- if (preIterVisible) {
- return 1;
- } else {
- return "20";
- }
- },
- configurable: true
- });
-
- Object.defineProperty(obj, "2", {
- get: function () {
- preIterVisible = true;
- return 2;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element changed by getter on current
+ iteration is observed subsequetly on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2 && curVal === 1);
+ }
+ }
+
+ var obj = { 0: 0, length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "20";
+ }
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-32.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-32.js
index 5313fa04a..1f7b5e5d3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-32.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-32.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-32.js
- * @description Array.prototype.reduceRight - Exception in getter terminate iteration on an Array-like object
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
-
- var obj = { 0: 0, 1: 1, length: 3 };
- Object.defineProperty(obj, "2", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, callbackfn);
- return false;
- } catch (ex) {
- return (ex instanceof RangeError) && !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - Exception in getter terminate
+ iteration on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
+
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return false;
+ } catch (ex) {
+ return (ex instanceof RangeError) && !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-33.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-33.js
index 8ca3350ad..04d55e182 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-33.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-33.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-33.js
- * @description Array.prototype.reduceRight - Exception in getter terminate iteration on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
-
- var arr = [0, 1];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
-
- try {
- arr.reduceRight(callbackfn);
- return false;
- } catch (ex) {
- return (ex instanceof RangeError) && !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - Exception in getter terminate
+ iteration on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
+
+ var arr = [0, 1];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
+
+ try {
+ arr.reduceRight(callbackfn);
+ return false;
+ } catch (ex) {
+ return (ex instanceof RangeError) && !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-4.js
index 768008388..66ee8d492 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-4.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-4.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- try {
- Array.prototype[2] = "11";
- [0, 1, 2].reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited data property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ try {
+ Array.prototype[2] = "11";
+ [0, 1, 2].reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-5.js
index b3e6a1e5f..e71ace66b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-5.js
@@ -1,45 +1,48 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-5.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === "20");
- }
- }
-
- var proto = {};
-
- Object.defineProperty(proto, "2", {
- get: function () {
- return 11;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
- child[0] = "0";
- child[1] = "1";
- Object.defineProperty(proto, "2", {
- value: "20",
- configurable: true
- });
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited accessor property on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === "20");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "2", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+ child[0] = "0";
+ child[1] = "1";
+ Object.defineProperty(proto, "2", {
+ value: "20",
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-6.js
index 9817a0dc4..878830d53 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-6.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-6.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return "2";
- },
- configurable: true
- });
- [0, 1, 2].reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[2];
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "2";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[2];
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-7.js
index 6d3829f01..910b2cc99 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-7.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-7.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
-
- Array.prototype.reduceRight.call(child, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ data property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2, length: 3 };
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+
+ Array.prototype.reduceRight.call(child, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-8.js
index 60afbbb5e..5a41889a4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-8.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-8.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- try {
- Array.prototype[0] = 0;
- Array.prototype[1] = 1;
- Array.prototype[2] = 2;
- [, , ,].reduceRight(callbackfn);
- return testResult;
-
- } finally {
- delete Array.prototype[0];
- delete Array.prototype[1];
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ data property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ try {
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , ,].reduceRight(callbackfn);
+ return testResult;
+
+ } finally {
+ delete Array.prototype[0];
+ delete Array.prototype[1];
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-9.js
index 266a41b0c..206ae8c2f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-9.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-b-iii-1-9.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 2);
- }
- }
-
- var obj = { 0: 0, 1: 1, length: 3 };
- Object.defineProperty(obj, "2", {
- get: function () {
- return 2;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 2);
+ }
+ }
+
+ var obj = { 0: 0, 1: 1, length: 3 };
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ return 2;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-1.js
index 487249257..a0c001fe1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-1.js
@@ -1,27 +1,29 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-1.js
- * @description Array.prototype.reduceRight throws TypeError when Array is empty and initialValue is not present
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- }
-
- var arr = new Array(10);
- try {
- arr.reduceRight(callbackfn);
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError when Array is empty
+ and initialValue is not present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
+
+ var arr = new Array(10);
+ try {
+ arr.reduceRight(callbackfn);
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-2.js
index 88ff3a234..799d58939 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-2.js
@@ -1,29 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-2.js
- * @description Array.prototype.reduceRight throws TypeError when elements assigned values are deleted by reducign array length and initialValue is not present
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- }
-
- var arr = new Array(10);
- arr[9] = 1;
- arr.length = 5;
- try {
- arr.reduceRight(callbackfn);
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError when elements
+ assigned values are deleted by reducign array length and
+ initialValue is not present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
+
+ var arr = new Array(10);
+ arr[9] = 1;
+ arr.length = 5;
+ try {
+ arr.reduceRight(callbackfn);
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-3.js
index af2b44d7d..2c74b47fd 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-3.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-3.js
- * @description Array.prototype.reduceRight throws TypeError when elements assigned values are deleted and initialValue is not present
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- }
-
- var arr = [1,2,3,4,5];
- delete arr[0];
- delete arr[1];
- delete arr[2];
- delete arr[3];
- delete arr[4];
- try {
- arr.reduceRight(callbackfn);
- }
- catch(e) {
- if(e instanceof TypeError)
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight throws TypeError when elements
+ assigned values are deleted and initialValue is not present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
+
+ var arr = [1,2,3,4,5];
+ delete arr[0];
+ delete arr[1];
+ delete arr[2];
+ delete arr[3];
+ delete arr[4];
+ try {
+ arr.reduceRight(callbackfn);
+ }
+ catch(e) {
+ if(e instanceof TypeError)
+ return true;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-4.js
index 8b6e2173b..44519d2da 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-4.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-4.js
- * @description Array.prototype.reduceRight doesn't throw error when array has no own properties but prototype contains a single property
- */
-
-
-function testcase() {
-
- var arr = [, , , ];
-
- try {
- Array.prototype[1] = "prototype";
- arr.reduceRight(function () { });
- return true;
- } catch (ex) {
- return false;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight doesn't throw error when array has no
+ own properties but prototype contains a single property
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = [, , , ];
+
+ try {
+ Array.prototype[1] = "prototype";
+ arr.reduceRight(function () { });
+ return true;
+ } catch (ex) {
+ return false;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-5.js
index 72e3b2ae0..12922d18b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-5.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-5.js
- * @description Array.prototype.reduceRight - side effects produced by step 2 are visible when an exception occurs
- */
-
-
-function testcase() {
-
- var obj = { };
-
- var accessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- accessed = true;
- return 2;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- return false;
- } catch (ex) {
- return (ex instanceof TypeError) && accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - side effects produced by step 2 are
+ visible when an exception occurs
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = { };
+
+ var accessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ accessed = true;
+ return 2;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return (ex instanceof TypeError) && accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-6.js
index 7be447abf..b980ce6f4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-6.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-6.js
- * @description Array.prototype.reduceRight - side effects produced by step 3 are visible when an exception occurs
- */
-
-
-function testcase() {
-
- var obj = {};
-
- var accessed = false;
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- toString: function () {
- accessed = true;
- return "2";
- }
- };
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- return false;
- } catch (ex) {
- return (ex instanceof TypeError) && accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - side effects produced by step 3 are
+ visible when an exception occurs
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = {};
+
+ var accessed = false;
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ accessed = true;
+ return "2";
+ }
+ };
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return (ex instanceof TypeError) && accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-7.js
index 16900c0b3..291f30d27 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-7.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-7.js
- * @description Array.prototype.reduceRight - the exception is not thrown if exception was thrown by step 2
- */
-
-
-function testcase() {
-
- var obj = {};
-
- Object.defineProperty(obj, "length", {
- get: function () {
- throw new SyntaxError();
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- 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: >
+ Array.prototype.reduceRight - the exception is not thrown if
+ exception was thrown by step 2
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = {};
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ throw new SyntaxError();
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return !(ex instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-8.js
index 1e5c81167..ec51a7bbd 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-8.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-8-c-8.js
- * @description Array.prototype.reduceRight - the exception is not thrown if exception was thrown by step 3
- */
-
-
-function testcase() {
-
- var obj = {};
-
- Object.defineProperty(obj, "length", {
- get: function () {
- return {
- toString: function () {
- throw new SyntaxError();
- }
- };
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, function () { });
- 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: >
+ Array.prototype.reduceRight - the exception is not thrown if
+ exception was thrown by step 3
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var obj = {};
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ return {
+ toString: function () {
+ throw new SyntaxError();
+ }
+ };
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, function () { });
+ return false;
+ } catch (ex) {
+ return !(ex instanceof TypeError);
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-1.js
index 91730cae5..4897c4621 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-1.js
@@ -1,22 +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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-1.js
- * @description Array.prototype.reduceRight doesn't consider new elements which index is larger than array original length added to array after it is called, consider new elements which index is smaller than array length
- */
-
-
-function testcase() {
- function callbackfn(prevVal, curVal, idx, obj) {
- arr[5] = 6;
- arr[2] = 3;
- return prevVal + curVal;
- }
-
- var arr = ['1', 2, , 4, '5'];
- return arr.reduceRight(callbackfn) === "54321";
- }
-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: >
+ Array.prototype.reduceRight doesn't consider new elements which
+ index is larger than array original length added to array after it
+ is called, consider new elements which index is smaller than array
+ length
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function callbackfn(prevVal, curVal, idx, obj) {
+ arr[5] = 6;
+ arr[2] = 3;
+ return prevVal + curVal;
+ }
+
+ var arr = ['1', 2, , 4, '5'];
+ return arr.reduceRight(callbackfn) === "54321";
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-2.js
index d85e721e4..e21db33b7 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-2.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-2.js
- * @description Array.prototype.reduceRight considers new value of elements in array after it is called
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- arr[3] = -2;
- arr[0] = -1;
- return prevVal + curVal;
- }
-
- var arr = [1,2,3,4,5];
- if(arr.reduceRight(callbackfn) === 13)
- 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: >
+ Array.prototype.reduceRight considers new value of elements in
+ array after it is called
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr[3] = -2;
+ arr[0] = -1;
+ return prevVal + curVal;
+ }
+
+ var arr = [1,2,3,4,5];
+ if(arr.reduceRight(callbackfn) === 13)
+ return true;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-3.js
index 6a07dc585..0a2425f03 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-3.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-3.js
- * @description Array.prototype.reduceRight doesn't consider unvisited deleted elements in array after the call
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- delete arr[1];
- delete arr[4];
- return prevVal + curVal;
- }
-
- var arr = ['1',2,3,4,5];
- if(arr.reduceRight(callbackfn) === "121" ) // two elements deleted
- 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: >
+ Array.prototype.reduceRight doesn't consider unvisited deleted
+ elements in array after the call
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[1];
+ delete arr[4];
+ return prevVal + curVal;
+ }
+
+ var arr = ['1',2,3,4,5];
+ if(arr.reduceRight(callbackfn) === "121" ) // two elements deleted
+ return true;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-4.js
index bbf7080ed..7eea640dc 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-4.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-4.js
- * @description Array.prototype.reduceRight doesn't consider unvisited deleted elements when Array.length is decreased
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- arr.length = 2;
- return prevVal + curVal;
- }
-
- var arr = [1,2,3,4,5];
- if(arr.reduceRight(callbackfn) === 12 )
- 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: >
+ Array.prototype.reduceRight doesn't consider unvisited deleted
+ elements when Array.length is decreased
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ arr.length = 2;
+ return prevVal + curVal;
+ }
+
+ var arr = [1,2,3,4,5];
+ if(arr.reduceRight(callbackfn) === 12 )
+ return true;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-5.js
index 733d80b59..7346c1616 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-5.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-5.js
- * @description Array.prototype.reduceRight - callbackfn not called for array with one element
- */
-
-
-function testcase() {
-
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- return 2;
- }
-
- var arr = [1];
- if(arr.reduceRight(callbackfn) === 1 && callCnt === 0 )
- 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: >
+ Array.prototype.reduceRight - callbackfn not called for array with
+ one element
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return 2;
+ }
+
+ var arr = [1];
+ if(arr.reduceRight(callbackfn) === 1 && callCnt === 0 )
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-6.js
index 15ced19ef..fd0d4e35f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-6.js
@@ -1,29 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-6.js
- * @description Array.prototype.reduceRight visits deleted element in array after the call when same index is also present in prototype
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- delete arr[1];
- delete arr[2];
- return prevVal + curVal;
- }
- Array.prototype[2] = 6;
- var arr = ['1',2,3,4,5];
- var res = arr.reduceRight(callbackfn);
- delete Array.prototype[2];
-
- if(res === "151" ) //one element deleted
- 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: >
+ Array.prototype.reduceRight visits deleted element in array after
+ the call when same index is also present in prototype
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ delete arr[1];
+ delete arr[2];
+ return prevVal + curVal;
+ }
+ Array.prototype[2] = 6;
+ var arr = ['1',2,3,4,5];
+ var res = arr.reduceRight(callbackfn);
+ delete Array.prototype[2];
+
+ if(res === "151" ) //one element deleted
+ return true;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-7.js
index 7115beca4..64f46cb60 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-7.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-7.js
- * @description Array.prototype.reduceRight not affect call when the array is deleted during the call
- */
-
-
-function testcase() {
- function callbackfn(prevVal, curVal, idx, obj) {
- delete o.arr;
- return prevVal + curVal;
- }
-
- var o = new Object();
- o.arr = ['1', 2, 3, 4, 5];
- return o.arr.reduceRight(callbackfn) === "141" && !o.hasOwnProperty("arr");
- }
-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: >
+ Array.prototype.reduceRight not affect call when the array is
+ deleted during the call
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ function callbackfn(prevVal, curVal, idx, obj) {
+ delete o.arr;
+ return prevVal + curVal;
+ }
+
+ var o = new Object();
+ o.arr = ['1', 2, 3, 4, 5];
+ return o.arr.reduceRight(callbackfn) === "141" && !o.hasOwnProperty("arr");
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-8.js
index adf2d7ee3..d3746d332 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-8.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-8.js
- * @description Array.prototype.reduceRight - no observable effects occur if 'len' is 0
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn() {
- accessed = true;
- }
-
- var obj = { length: 0 };
-
- Object.defineProperty(obj, "5", {
- get: function () {
- accessed = true;
- return 10;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, function () { }, "initialValue");
- return !accessed;
- }
-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: >
+ Array.prototype.reduceRight - no observable effects occur if 'len'
+ is 0
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn() {
+ accessed = true;
+ }
+
+ var obj = { length: 0 };
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ accessed = true;
+ return 10;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, function () { }, "initialValue");
+ return !accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-9.js
index f661c629f..fbed767db 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-9.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-9.js
- * @description Array.prototype.reduceRight - modifications to length will change number of iterations
- */
-
-
-function testcase() {
- var called = 0;
- function callbackfn(preVal, val, idx, obj) {
- called++;
- }
-
- var arr = [0, 1, 2, 3];
- Object.defineProperty(arr, "4", {
- get: function () {
- arr.length = 2;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
-
- return called === 3;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - modifications to length will change
+ number of iterations
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var called = 0;
+ function callbackfn(preVal, val, idx, obj) {
+ called++;
+ }
+
+ var arr = [0, 1, 2, 3];
+ Object.defineProperty(arr, "4", {
+ get: function () {
+ arr.length = 2;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+
+ return called === 3;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-1.js
index e2d928db0..d1830a6e5 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-1.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-1.js
- * @description Array.prototype.reduceRight returns initialvalue when Array is empty and initialValue is not present
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- }
-
- var arr = new Array(10);
-
- if(arr.reduceRight(callbackfn,5) === 5)
- 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: >
+ Array.prototype.reduceRight returns initialvalue when Array is
+ empty and initialValue is not present
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ }
+
+ var arr = new Array(10);
+
+ if(arr.reduceRight(callbackfn,5) === 5)
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-10.js
index 1d6005c61..130c6e3a0 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-10.js
@@ -1,42 +1,45 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-10.js
- * @description Array.prototype.reduceRight - deleting property of prototype in step 8 causes deleted index property not to be visited on an Array-like Object
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(preVal, val, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
- }
-
- var obj = { 2: 2, length: 20 };
-
- Object.defineProperty(obj, "5", {
- get: function () {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
- });
-
- try {
- Object.prototype[3] = 1;
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult && accessed;
- } finally {
- delete Object.prototype[3];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting property of prototype in
+ step 8 causes deleted index property not to be visited on an
+ Array-like Object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, val, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 2: 2, length: 20 };
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Object.prototype[3] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult && accessed;
+ } finally {
+ delete Object.prototype[3];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-11.js
index ed5c4b32a..9de88c549 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-11.js
@@ -1,41 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-11.js
- * @description Array.prototype.reduceRight - deleting property of prototype in step 8 causes deleted index property not to be visited on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
- }
-
- var arr = [0, , , ];
- Object.defineProperty(arr, "3", {
- get: function () {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype[1] = 1;
- arr.reduceRight(callbackfn);
- return testResult && accessed;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting property of prototype in
+ step 8 causes deleted index property not to be visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0, , , ];
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn);
+ return testResult && accessed;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-12.js
index ef7371db6..2d97e642f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-12.js
@@ -1,40 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-12.js
- * @description Array.prototype.reduceRight - deleting own property with prototype property in step 8 causes prototype index property to be visited on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
- }
-
- var obj = { 0: 0, 1: 111, length: 10 };
-
- Object.defineProperty(obj, "4", {
- get: function () {
- delete obj[1];
- return 0;
- },
- configurable: true
- });
-
- try {
- Object.prototype[1] = 1;
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- } finally {
- delete Object.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting own property with prototype
+ property in step 8 causes prototype index property to be visited
+ on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+
+ var obj = { 0: 0, 1: 111, length: 10 };
+
+ Object.defineProperty(obj, "4", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Object.prototype[1] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ } finally {
+ delete Object.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-13.js
index 98b592345..5ab0bf436 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-13.js
@@ -1,39 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-13.js
- * @description Array.prototype.reduceRight - deleting own property with prototype property in step 8 causes prototype index property to be visited on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
- }
- var arr = [0, 111];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- delete arr[1];
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype[1] = 1;
- arr.reduceRight(callbackfn);
- return testResult;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting own property with prototype
+ property in step 8 causes prototype index property to be visited
+ on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn);
+ return testResult;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-14.js
index 729158add..064fb17ac 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-14.js
@@ -1,38 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-14.js
- * @description Array.prototype.reduceRight - decreasing length of array in step 8 causes deleted index property not to be visited
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
- }
-
- var arr = [0, 1, 2, 3];
-
- Object.defineProperty(arr, "3", {
- get: function () {
- arr.length = 2;
- return 0;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
-
- return testResult && accessed;
- }
-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: >
+ Array.prototype.reduceRight - decreasing length of array in step 8
+ causes deleted index property not to be visited
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+
+ return testResult && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-15.js
index c6ff3dc47..b1d1a9c4b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-15.js
@@ -1,46 +1,49 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-15.js
- * @description Array.prototype.reduceRight - decreasing length of array with prototype property in step 8 causes prototype index property to be visited
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "prototype") {
- testResult = true;
- }
- }
- var arr = [0, 1, 2, 3];
-
- try {
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return "prototype";
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "3", {
- get: function () {
- arr.length = 2;
- return 1;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
-
- return testResult;
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - decreasing length of array with
+ prototype property in step 8 causes prototype index property to be
+ visited
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
+
+ try {
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+
+ return testResult;
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-16.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-16.js
index 256884a7f..7238182d3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-16.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-16.js
@@ -1,43 +1,45 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-16.js
- * @description Array.prototype.reduceRight - decreasing length of array in step 8 does not delete non-configurable properties
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "unconfigurable") {
- testResult = true;
- }
- }
-
- var arr = [0, 1, 2, 3];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- return "unconfigurable";
- },
- configurable: false
- });
-
- Object.defineProperty(arr, "3", {
- get: function () {
- arr.length = 2;
- return 1;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
-
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - decreasing length of array in step 8
+ does not delete non-configurable properties
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-17.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-17.js
index 0dee9d966..37c317aac 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-17.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-17.js
@@ -1,40 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-17.js
- * @description Array.prototype.reduceRight - properties added into own object are visited on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
- }
-
- var obj = { length: 2 };
-
- Object.defineProperty(obj, "1", {
- get: function () {
- Object.defineProperty(obj, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - properties added into own object are
+ visited on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
+
+ var obj = { length: 2 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-18.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-18.js
index 702a8590a..423e32494 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-18.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-18.js
@@ -1,40 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-18.js
- * @description Array.prototype.reduceRight - properties added into own object are visited on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - properties added into own object are
+ visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-19.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-19.js
index 4ce0b025b..561ba7c9e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-19.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-19.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-19.js
- * @description Array.prototype.reduceRight - properties added to prototype are visited on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
- }
-
- var obj = { length: 6 };
-
- Object.defineProperty(obj, "2", {
- get: function () {
- Object.defineProperty(Object.prototype, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
- } finally {
- delete Object.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - properties added to prototype are
+ visited on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
+
+ var obj = { length: 6 };
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+ } finally {
+ delete Object.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-2.js
index 556d8d640..6d5298ed0 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-2.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-2.js
- * @description Array.prototype.reduceRight - added properties in step 2 are visible here
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "2") {
- testResult = true;
- }
- }
-
- var obj = {};
-
- Object.defineProperty(obj, "length", {
- get: function () {
- obj[2] = "2";
- return 3;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
-
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - added properties in step 2 are
+ visible here
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "2") {
+ testResult = true;
+ }
+ }
+
+ var obj = {};
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ obj[2] = "2";
+ return 3;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-20.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-20.js
index 21b490e47..0d2a6f05c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-20.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-20.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-20.js
- * @description Array.prototype.reduceRight - properties added to prototype can be visited on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
-
- try {
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - properties added to prototype can be
+ visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-21.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-21.js
index e0ea32986..32ac164af 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-21.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-21.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-21.js
- * @description Array.prototype.reduceRight - deleting own property causes deleted index property not to be visited on an Array-like object
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
- }
-
- var obj = { 0: 10, length: 10 };
-
- Object.defineProperty(obj, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
-
- Object.defineProperty(obj, "5", {
- get: function () {
- delete obj[1];
- return 0;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult && accessed;
- }
-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: >
+ Array.prototype.reduceRight - deleting own property causes deleted
+ index property not to be visited on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 0: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-22.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-22.js
index 13ebf8fc5..55ce03b8b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-22.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-22.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-22.js
- * @description Array.prototype.reduceRight - deleting own property causes deleted index property not to be visited on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
- }
-
- var arr = [1, 2, 4];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- return "6.99";
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "2", {
- get: function () {
- delete arr[1];
- return 0;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult && accessed;
- }
-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: >
+ Array.prototype.reduceRight - deleting own property causes deleted
+ index property not to be visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [1, 2, 4];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-23.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-23.js
index aadccc3ad..7130756ed 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-23.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-23.js
@@ -1,42 +1,45 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-23.js
- * @description Array.prototype.reduceRight - deleting property of prototype causes deleted index property not to be visited on an Array-like Object
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 3) {
- testResult = false;
- }
- }
-
- var obj = { 2: 2, length: 20 };
-
- Object.defineProperty(obj, "5", {
- get: function () {
- delete Object.prototype[3];
- return 0;
- },
- configurable: true
- });
-
- try {
- Object.prototype[3] = 1;
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult && accessed;
- } finally {
- delete Object.prototype[3];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting property of prototype
+ causes deleted index property not to be visited on an Array-like
+ Object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 3) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 2: 2, length: 20 };
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete Object.prototype[3];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Object.prototype[3] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult && accessed;
+ } finally {
+ delete Object.prototype[3];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-24.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-24.js
index d1237462e..3f459e637 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-24.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-24.js
@@ -1,41 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-24.js
- * @description Array.prototype.reduceRight - deleting property of prototype causes deleted index property not to be visited on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
- }
-
- var arr = [0, , , ];
- Object.defineProperty(arr, "3", {
- get: function () {
- delete Array.prototype[1];
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype[1] = 1;
- arr.reduceRight(callbackfn, "initialValue");
- return testResult && accessed;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting property of prototype
+ causes deleted index property not to be visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0, , , ];
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ delete Array.prototype[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult && accessed;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-25.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-25.js
index 957a7f3b1..f11a044ae 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-25.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-25.js
@@ -1,40 +1,43 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-25.js
- * @description Array.prototype.reduceRight - deleting own property with prototype property causes prototype index property to be visited on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
- }
-
- var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
-
- Object.defineProperty(obj, "4", {
- get: function () {
- delete obj[1];
- return 0;
- },
- configurable: true
- });
-
- try {
- Object.prototype[1] = 1;
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
- } finally {
- delete Object.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting own property with prototype
+ property causes prototype index property to be visited on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+
+ var obj = { 0: 0, 1: 111, 4: 10, length: 10 };
+
+ Object.defineProperty(obj, "4", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Object.prototype[1] = 1;
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+ } finally {
+ delete Object.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-26.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-26.js
index 3e834301b..525a7a014 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-26.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-26.js
@@ -1,39 +1,41 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-26.js
- * @description Array.prototype.reduceRight - deleting own property with prototype property causes prototype index property to be visited on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
- }
- var arr = [0, 111];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- delete arr[1];
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype[1] = 1;
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - deleting own property with prototype
+ property causes prototype index property to be visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+ var arr = [0, 111];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype[1] = 1;
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-27.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-27.js
index bc65007e4..ff88d0629 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-27.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-27.js
@@ -1,38 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-27.js
- * @description Array.prototype.reduceRight - decreasing length of array causes deleted index property not to be visited
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
- }
-
- var arr = [0, 1, 2, 3];
-
- Object.defineProperty(arr, "3", {
- get: function () {
- arr.length = 2;
- return 0;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
-
- return testResult && accessed;
- }
-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: >
+ Array.prototype.reduceRight - decreasing length of array causes
+ deleted index property not to be visited
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+
+ return testResult && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-28.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-28.js
index f4a598f36..d8d9cbc37 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-28.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-28.js
@@ -1,46 +1,48 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-28.js
- * @description Array.prototype.reduceRight - decreasing length of array with prototype property causes prototype index property to be visited
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "prototype") {
- testResult = true;
- }
- }
- var arr = [0, 1, 2, 3];
-
- try {
- Object.defineProperty(Array.prototype, "2", {
- get: function () {
- return "prototype";
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "3", {
- get: function () {
- arr.length = 2;
- return 1;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
-
- return testResult;
- } finally {
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - decreasing length of array with
+ prototype property causes prototype index property to be visited
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "prototype") {
+ testResult = true;
+ }
+ }
+ var arr = [0, 1, 2, 3];
+
+ try {
+ Object.defineProperty(Array.prototype, "2", {
+ get: function () {
+ return "prototype";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+
+ return testResult;
+ } finally {
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-29.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-29.js
index 2866d075b..78c7aeac2 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-29.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-29.js
@@ -1,43 +1,45 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-29.js
- * @description Array.prototype.reduceRight - decreasing length of array does not delete non-configurable properties
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2 && curVal === "unconfigurable") {
- testResult = true;
- }
- }
-
- var arr = [0, 1, 2, 3];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- return "unconfigurable";
- },
- configurable: false
- });
-
- Object.defineProperty(arr, "3", {
- get: function () {
- arr.length = 2;
- return 1;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
-
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - decreasing length of array does not
+ delete non-configurable properties
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2 && curVal === "unconfigurable") {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, 1, 2, 3];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ return "unconfigurable";
+ },
+ configurable: false
+ });
+
+ Object.defineProperty(arr, "3", {
+ get: function () {
+ arr.length = 2;
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-3.js
index 43e54d5ef..3f6f11a4e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-3.js
@@ -1,38 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-3.js
- * @description Array.prototype.reduceRight - deleted properties in step 2 are visible here
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 2) {
- testResult = false;
- }
- }
-
- var obj = { 2: "2", 3: 10 };
-
- Object.defineProperty(obj, "length", {
- get: function () {
- delete obj[2];
- return 5;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
-
- return accessed && testResult;
- }
-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: >
+ Array.prototype.reduceRight - deleted properties in step 2 are
+ visible here
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 2) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 2: "2", 3: 10 };
+
+ Object.defineProperty(obj, "length", {
+ get: function () {
+ delete obj[2];
+ return 5;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+
+ return accessed && testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-4.js
index a01922b22..b2e0a6834 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-4.js
@@ -1,40 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-4.js
- * @description Array.prototype.reduceRight - properties added into own object in step 8 can be visited on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 0 && curVal === 0) {
- testResult = true;
- }
- }
-
- var obj = { length: 2 };
-
- Object.defineProperty(obj, "1", {
- get: function () {
- Object.defineProperty(obj, "0", {
- get: function () {
- return 0;
- },
- configurable: true
- });
- return 1;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - properties added into own object in
+ step 8 can be visited on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 0 && curVal === 0) {
+ testResult = true;
+ }
+ }
+
+ var obj = { length: 2 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ Object.defineProperty(obj, "0", {
+ get: function () {
+ return 0;
+ },
+ configurable: true
+ });
+ return 1;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-5.js
index 4d1556f4c..1f51d521e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-5.js
@@ -1,40 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-5.js
- * @description Array.prototype.reduceRight - properties added into own object in step 8 can be visited on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 1) {
- testResult = true;
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - properties added into own object in
+ step 8 can be visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 1) {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-6.js
index 587acd4e8..02891357c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-6.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-6.js
- * @description Array.prototype.reduceRight - properties added to prototype in step 8 visited on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
- }
-
- var obj = { length: 6 };
-
- Object.defineProperty(obj, "2", {
- get: function () {
- Object.defineProperty(Object.prototype, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult;
- } finally {
- delete Object.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - properties added to prototype in
+ step 8 visited on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
+
+ var obj = { length: 6 };
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ Object.defineProperty(Object.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult;
+ } finally {
+ delete Object.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-7.js
index ec2fc0c3c..775af0ebd 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-7.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-7.js
- * @description Array.prototype.reduceRight - properties added to prototype in step 8 visited on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(preVal, curVal, idx, obj) {
- if (idx === 1 && curVal === 6.99) {
- testResult = true;
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "2", {
- get: function () {
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
- return 0;
- },
- configurable: true
- });
-
- try {
- arr.reduceRight(callbackfn);
- return testResult;
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - properties added to prototype in
+ step 8 visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ if (idx === 1 && curVal === 6.99) {
+ testResult = true;
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+ return 0;
+ },
+ configurable: true
+ });
+
+ try {
+ arr.reduceRight(callbackfn);
+ return testResult;
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-8.js
index d080f6386..40e564cf2 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-8.js
@@ -1,44 +1,47 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-8.js
- * @description Array.prototype.reduceRight - deleting own property in step 8 causes deleted index property not to be visited on an Array-like object
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(preVal, val, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
- }
-
- var obj = { 0: 10, length: 10 };
-
- Object.defineProperty(obj, "1", {
- get: function () {
- return 6.99;
- },
- configurable: true
- });
-
- Object.defineProperty(obj, "5", {
- get: function () {
- delete obj[1];
- return 0;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn);
- return testResult && accessed;
- }
-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: >
+ Array.prototype.reduceRight - deleting own property in step 8
+ causes deleted index property not to be visited on an Array-like
+ object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, val, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var obj = { 0: 10, length: 10 };
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 6.99;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "5", {
+ get: function () {
+ delete obj[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn);
+ return testResult && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-9.js
index 3b5262d0d..c27ee7076 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-9.js
@@ -1,44 +1,46 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-b-9.js
- * @description Array.prototype.reduceRight - deleting own property in step 8 causes deleted index property not to be visited on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- var testResult = true;
-
- function callbackfn(preVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- testResult = false;
- }
- }
-
- var arr = [0];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- return "6.99";
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "2", {
- get: function () {
- delete arr[1];
- return 0;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn);
- return testResult && accessed;
- }
-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: >
+ Array.prototype.reduceRight - deleting own property in step 8
+ causes deleted index property not to be visited on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var testResult = true;
+
+ function callbackfn(preVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ testResult = false;
+ }
+ }
+
+ var arr = [0];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "6.99";
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ delete arr[1];
+ return 0;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn);
+ return testResult && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-1.js
index e9605005b..22b4b3ed8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-1.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-1.js
- * @description Array.prototype.reduceRight - callbackfn not called for indexes never been assigned values
- */
-
-
-function testcase() {
-
- var callCnt = 0;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- callCnt++;
- return curVal;
- }
-
- var arr = new Array(10);
- arr[0] = arr[1] = undefined; //explicitly assigning a value
- if( arr.reduceRight(callbackfn) === undefined && callCnt === 1)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - callbackfn not called for indexes
+ never been assigned values
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var callCnt = 0;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ callCnt++;
+ return curVal;
+ }
+
+ var arr = new Array(10);
+ arr[0] = arr[1] = undefined; //explicitly assigning a value
+ if( arr.reduceRight(callbackfn) === undefined && callCnt === 1)
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-1.js
index 9f7d759f7..e6c6c51b1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-1.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-1.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === 0);
- }
- }
-
- var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === 0);
+ }
+ }
+
+ var obj = { 0: 0, 1: 1, 2: 2, length: 2 };
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-10.js
index c38db49a8..01094e245 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-10.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-10.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-11.js
index 23faac6e7..b5379b7b3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-11.js
@@ -1,39 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-11.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
-
- var proto = { 0: 0, 1: 11, 2: 2 };
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Object.defineProperty(child, "1", {
- get: function () {
- return "1";
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited data property on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 0, 1: 11, 2: 2 };
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-12.js
index d90ff9b89..354f8ac8c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-12.js
@@ -1,39 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-12.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
-
- try {
- Array.prototype[1] = 11;
- var arr = [0, ,2];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- return "1";
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited data property on an
+ Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ try {
+ Array.prototype[1] = 11;
+ var arr = [0, ,2];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-13.js
index 23e696b2c..dad90438a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-13.js
@@ -1,46 +1,49 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-13.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
-
- var proto = { 0: 0, 2: 2};
-
- Object.defineProperty(proto, "1", {
- get: function () {
- return 11;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Object.defineProperty(child, "1", {
- get: function () {
- return "1";
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited accessor property on
+ an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 0, 2: 2};
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Object.defineProperty(child, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-14.js
index af7095e0d..3e704d4cc 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-14.js
@@ -1,44 +1,47 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-14.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property that overrides an inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 11;
- },
- configurable: true
- });
-
- var arr = [0, ,2];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- return "1";
- },
- configurable: true
- });
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property that overrides an inherited accessor property on
+ an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 11;
+ },
+ configurable: true
+ });
+
+ var arr = [0, ,2];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ return "1";
+ },
+ configurable: true
+ });
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-15.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-15.js
index b87645abd..b2f1fbfed 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-15.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-15.js
@@ -1,39 +1,41 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-15.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var proto = { 0: 0, 2: 2 };
-
- Object.defineProperty(proto, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var proto = { 0: 0, 2: 2 };
+
+ Object.defineProperty(proto, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-16.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-16.js
index ec6fa02a8..b4daf5b93 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-16.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-16.js
@@ -1,38 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-16.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
-
- var arr = [0, , 2];
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ var arr = [0, , 2];
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-17.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-17.js
index 9c6d616d3..bd34c6641 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-17.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-17.js
@@ -1,31 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-17.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
-
- var obj = { 0: 0, 2: 2, length: 3 };
-
- Object.defineProperty(obj, "1", {
- set: function () { },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
+
+ var obj = { 0: 0, 2: 2, length: 3 };
+
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-18.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-18.js
index c4d92754f..dc9369521 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-18.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-18.js
@@ -1,32 +1,34 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-18.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "1", {
- set: function () { },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-19.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-19.js
index 28b625dcb..0f5a93614 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-19.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-19.js
@@ -1,37 +1,40 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-19.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function that overrides an inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
-
- try {
- Object.prototype[1] = 1;
-
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- set: function () { },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
- } finally {
- delete Object.prototype[1];
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function that overrides an
+ inherited accessor property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
+
+ try {
+ Object.prototype[1] = 1;
+
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+ } finally {
+ delete Object.prototype[1];
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-2.js
index aac59de14..03b22b03d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-2.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-2.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var arr = [0, 1, 2];
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [0, 1, 2];
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-20.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-20.js
index 5e5ba85f8..a2d94f6b3 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-20.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-20.js
@@ -1,36 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-20.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property without a get function that overrides an inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
-
- try {
- Array.prototype[1] = 1;
- var arr = [0, ,2];
- Object.defineProperty(arr, "1", {
- set: function () { },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property without a get function that overrides an
+ inherited accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
+
+ try {
+ Array.prototype[1] = 1;
+ var arr = [0, ,2];
+ Object.defineProperty(arr, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-21.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-21.js
index d889aabda..f1928a679 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-21.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-21.js
@@ -1,39 +1,41 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-21.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property without a get function on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
-
- var proto = { 0: 0, 2: 2 };
-
- Object.defineProperty(proto, "1", {
- set: function () { },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
-
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property without a get function on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
+
+ var proto = { 0: 0, 2: 2 };
+
+ Object.defineProperty(proto, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-22.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-22.js
index 92042cb65..64dbcbbc4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-22.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-22.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-22.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited accessor property without a get function on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (typeof curVal === "undefined");
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "1", {
- set: function () { },
- configurable: true
- });
-
- var arr = [0, , 2];
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ accessor property without a get function on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (typeof curVal === "undefined");
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "1", {
+ set: function () { },
+ configurable: true
+ });
+
+ var arr = [0, , 2];
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-23.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-23.js
index 6d267608c..18d6c86eb 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-23.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-23.js
@@ -1,38 +1,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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-23.js
- * @description Array.prototype.reduceRight - This object is an global object which contains index property
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- try {
- var oldLen = fnGlobalObject().length;
- fnGlobalObject()[0] = 0;
- fnGlobalObject()[1] = 1;
- fnGlobalObject()[2] = 2;
- fnGlobalObject().length = 3;
-
- Array.prototype.reduceRight.call(fnGlobalObject(), callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete fnGlobalObject()[0];
- delete fnGlobalObject()[1];
- delete fnGlobalObject()[2];
- fnGlobalObject().length = oldLen;
- }
- }
-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: >
+ Array.prototype.reduceRight - This object is an global object
+ which contains index property
+includes:
+ - runTestCase.js
+ - fnGlobalObject.js
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ try {
+ var oldLen = fnGlobalObject().length;
+ fnGlobalObject()[0] = 0;
+ fnGlobalObject()[1] = 1;
+ fnGlobalObject()[2] = 2;
+ fnGlobalObject().length = 3;
+
+ Array.prototype.reduceRight.call(fnGlobalObject(), callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete fnGlobalObject()[0];
+ delete fnGlobalObject()[1];
+ delete fnGlobalObject()[2];
+ fnGlobalObject().length = oldLen;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-25.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-25.js
index 97a8e54b4..b9f150ee8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-25.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-25.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-25.js
- * @description Array.prototype.reduceRight - This object is the Arguments object which implements its own property get method (number of arguments is less than number of parameters)
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
- };
-
- func(0, 1);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - This object is the Arguments object
+ which implements its own property get method (number of arguments
+ is less than number of parameters)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
+
+ func(0, 1);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-26.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-26.js
index fad7e2f36..9bb4eaded 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-26.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-26.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-26.js
- * @description Array.prototype.reduceRight - This object is the Arguments object which implements its own property get method (number of arguments equals number of parameters)
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (curVal === 2);
- }
- }
-
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
- };
-
- func(0, 1, 2);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - This object is the Arguments object
+ which implements its own property get method (number of arguments
+ equals number of parameters)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (curVal === 2);
+ }
+ }
+
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
+
+ func(0, 1, 2);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-27.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-27.js
index a7a51e52d..be8cf9293 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-27.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-27.js
@@ -1,28 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-27.js
- * @description Array.prototype.reduceRight - This object is the Arguments object which implements its own property get method (number of arguments is greater than number of parameters)
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 3) {
- testResult = (curVal === 3);
- }
- }
-
- var func = function (a, b, c) {
- Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
- };
-
- func(0, 1, 2, 3);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - This object is the Arguments object
+ which implements its own property get method (number of arguments
+ is greater than number of parameters)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 3) {
+ testResult = (curVal === 3);
+ }
+ }
+
+ var func = function (a, b, c) {
+ Array.prototype.reduceRight.call(arguments, callbackfn, "initialValue");
+ };
+
+ func(0, 1, 2, 3);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-28.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-28.js
index 37788d32e..713b73a43 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-28.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-28.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-28.js
- * @description Array.prototype.reduceRight applied to String object, which implements its own property get method
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
-
- var str = new String("012");
- Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight applied to String object, which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var str = new String("012");
+ Array.prototype.reduceRight.call(str, callbackfn, "initialValue");
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-29.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-29.js
index c9fea29d9..7390d9ebe 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-29.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-29.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-29.js
- * @description Array.prototype.reduceRight applied to Function object which implements its own property get method
- */
-
-
-function testcase() {
-
- var testResult = false;
- var initialValue = 0;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var obj = function (a, b, c) {
- return a + b + c;
- };
- obj[0] = 0;
- obj[1] = 1;
- obj[2] = 2;
- obj[3] = 3;
-
- Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight applied to Function object which
+ implements its own property get method
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ var initialValue = 0;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = function (a, b, c) {
+ return a + b + c;
+ };
+ obj[0] = 0;
+ obj[1] = 1;
+ obj[2] = 2;
+ obj[3] = 3;
+
+ Array.prototype.reduceRight.call(obj, callbackfn, initialValue);
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-3.js
index 924a7e6e4..4f9715622 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-3.js
@@ -1,34 +1,37 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-3.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === "1");
- }
- }
-
- var proto = { 0: 10, 1: 11, 2: 12, length: 2 };
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child[1] = "1";
- child[2] = "2";
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited data property on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === "1");
+ }
+ }
+
+ var proto = { 0: 10, 1: 11, 2: 12, length: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child[1] = "1";
+ child[2] = "2";
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-30.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-30.js
index 06e454b17..60239232b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-30.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-30.js
@@ -1,46 +1,48 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-30.js
- * @description Array.prototype.reduceRight - element changed by getter on previous iterations is observed on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var arr = [, ,];
- var preIterVisible = false;
-
- Object.defineProperty(arr, "2", {
- get: function () {
- preIterVisible = true;
- return 0;
- },
- configurable: true
- });
-
- Object.defineProperty(arr, "1", {
- get: function () {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
- });
-
- arr.reduceRight(callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element changed by getter on
+ previous iterations is observed on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var arr = [, ,];
+ var preIterVisible = false;
+
+ Object.defineProperty(arr, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ arr.reduceRight(callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-31.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-31.js
index 0d558e0e4..d59afc704 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-31.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-31.js
@@ -1,47 +1,49 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-31.js
- * @description Array.prototype.reduceRight - element changed by getter on previous iterations is observed on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var obj = { length: 3 };
- var preIterVisible = false;
-
- Object.defineProperty(obj, "2", {
- get: function () {
- preIterVisible = true;
- return 0;
- },
- configurable: true
- });
-
- Object.defineProperty(obj, "1", {
- get: function () {
- if (preIterVisible) {
- return 1;
- } else {
- return "11";
- }
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element changed by getter on
+ previous iterations is observed on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { length: 3 };
+ var preIterVisible = false;
+
+ Object.defineProperty(obj, "2", {
+ get: function () {
+ preIterVisible = true;
+ return 0;
+ },
+ configurable: true
+ });
+
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ if (preIterVisible) {
+ return 1;
+ } else {
+ return "11";
+ }
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-32.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-32.js
index 2f1423ad5..6fd72875b 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-32.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-32.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-32.js
- * @description Array.prototype.reduceRight - unnhandled exceptions happened in getter terminate iteration on an Array-like object
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
-
-
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
-
- try {
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return false;
- } catch (ex) {
- return (ex instanceof RangeError) && !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - unnhandled exceptions happened in
+ getter terminate iteration on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
+
+
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
+
+ try {
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return false;
+ } catch (ex) {
+ return (ex instanceof RangeError) && !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-33.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-33.js
index a1e6a7988..0c3304797 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-33.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-33.js
@@ -1,37 +1,39 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-33.js
- * @description Array.prototype.reduceRight - unnhandled exceptions happened in getter terminate iteration on an Array
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx <= 1) {
- accessed = true;
- }
- }
-
- var arr = [0, , 2];
-
- Object.defineProperty(arr, "1", {
- get: function () {
- throw new RangeError("unhandle exception happened in getter");
- },
- configurable: true
- });
-
- try {
- arr.reduceRight(callbackfn, "initialValue");
- return true;
- } catch (ex) {
- return (ex instanceof RangeError) && !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - unnhandled exceptions happened in
+ getter terminate iteration on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx <= 1) {
+ accessed = true;
+ }
+ }
+
+ var arr = [0, , 2];
+
+ Object.defineProperty(arr, "1", {
+ get: function () {
+ throw new RangeError("unhandle exception happened in getter");
+ },
+ configurable: true
+ });
+
+ try {
+ arr.reduceRight(callbackfn, "initialValue");
+ return true;
+ } catch (ex) {
+ return (ex instanceof RangeError) && !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-4.js
index 7621f8a37..b7d63899f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-4.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-4.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- try {
- Array.prototype[1] = "11";
- [0, 1, 2].reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited data property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ try {
+ Array.prototype[1] = "11";
+ [0, 1, 2].reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-5.js
index e336657d5..0ab856ad9 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-5.js
@@ -1,44 +1,47 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-5.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 0) {
- testResult = (curVal === "0");
- }
- }
-
- var proto = {};
-
- Object.defineProperty(proto, "0", {
- get: function () {
- return 10;
- },
- configurable: true
- });
-
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 2;
- Object.defineProperty(child, "0", {
- value: "0",
- configurable: true
- });
- child[1] = "1";
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited accessor property on an
+ Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 0) {
+ testResult = (curVal === "0");
+ }
+ }
+
+ var proto = {};
+
+ Object.defineProperty(proto, "0", {
+ get: function () {
+ return 10;
+ },
+ configurable: true
+ });
+
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 2;
+ Object.defineProperty(child, "0", {
+ value: "0",
+ configurable: true
+ });
+ child[1] = "1";
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-6.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-6.js
index 0e1fff8e4..c8fcf9f87 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-6.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-6.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-6.js
- * @description Array.prototype.reduceRight - element to be retrieved is own data property that overrides an inherited accessor property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- try {
- Object.defineProperty(Array.prototype, "1", {
- get: function () {
- return "11";
- },
- configurable: true
- });
- [0, 1, 2].reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[1];
- }
-
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is own data
+ property that overrides an inherited accessor property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ try {
+ Object.defineProperty(Array.prototype, "1", {
+ get: function () {
+ return "11";
+ },
+ configurable: true
+ });
+ [0, 1, 2].reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[1];
+ }
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-7.js
index 0fe74c677..fedcea975 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-7.js
@@ -1,31 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-7.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited data property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var proto = { 0: 0, 1: 1, 2: 2 };
- var Con = function () { };
- Con.prototype = proto;
-
- var child = new Con();
- child.length = 3;
-
- Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ data property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var proto = { 0: 0, 1: 1, 2: 2 };
+ var Con = function () { };
+ Con.prototype = proto;
+
+ var child = new Con();
+ child.length = 3;
+
+ Array.prototype.reduceRight.call(child, callbackfn, "initialValue");
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-8.js
index f289ed0f5..f52e8237a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-8.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-8.js
- * @description Array.prototype.reduceRight - element to be retrieved is inherited data property on an Array
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- try {
- Array.prototype[0] = 0;
- Array.prototype[1] = 1;
- Array.prototype[2] = 2;
- [, , , ].reduceRight(callbackfn, "initialValue");
- return testResult;
-
- } finally {
- delete Array.prototype[0];
- delete Array.prototype[1];
- delete Array.prototype[2];
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - element to be retrieved is inherited
+ data property on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ try {
+ Array.prototype[0] = 0;
+ Array.prototype[1] = 1;
+ Array.prototype[2] = 2;
+ [, , , ].reduceRight(callbackfn, "initialValue");
+ return testResult;
+
+ } finally {
+ delete Array.prototype[0];
+ delete Array.prototype[1];
+ delete Array.prototype[2];
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-9.js
index db7670447..bd9dbbcd8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-9.js
@@ -1,33 +1,35 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-i-9.js
- * @description Array.prototype.reduceRight - element to be retrieved is own accessor property on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (curVal === 1);
- }
- }
-
- var obj = { 0: 0, 2: 2, length: 3 };
- Object.defineProperty(obj, "1", {
- get: function () {
- return 1;
- },
- configurable: true
- });
-
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return testResult;
-
- }
-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: >
+ Array.prototype.reduceRight - element to be retrieved is own
+ accessor property on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (curVal === 1);
+ }
+ }
+
+ var obj = { 0: 0, 2: 2, length: 3 };
+ Object.defineProperty(obj, "1", {
+ get: function () {
+ return 1;
+ },
+ configurable: true
+ });
+
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return testResult;
+
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-1.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-1.js
index fe345d052..e8ddaa4a4 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-1.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-1.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-1.js
- * @description Array.prototype.reduceRight - callbackfn called with correct parameters (initialvalue not passed)
- */
-
-
-function testcase() {
-
- function callbackfn(prevVal, curVal, idx, obj)
- {
- if(idx+1 < obj.length && obj[idx] === curVal && obj[idx+1] === prevVal)
- return curVal;
- else
- return false;
- }
-
- var arr = [0,1,true,null,new Object(),"five"];
- if( arr.reduceRight(callbackfn) === 0)
- 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: >
+ Array.prototype.reduceRight - callbackfn called with correct
+ parameters (initialvalue not passed)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ if(idx+1 < obj.length && obj[idx] === curVal && obj[idx+1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
+
+ var arr = [0,1,true,null,new Object(),"five"];
+ if( arr.reduceRight(callbackfn) === 0)
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-10.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-10.js
index 5414316d6..cd807ad2e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-10.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-10.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-10.js
- * @description Array.prototype.reduceRight - callbackfn is called with 1 formal parameter
- */
-
-
-function testcase() {
-
- var called = 0;
-
- function callbackfn(prevVal) {
- called++;
- return prevVal;
- }
-
- return [11, 12].reduceRight(callbackfn, 100) === 100 && 2 === called;
- }
-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: >
+ Array.prototype.reduceRight - callbackfn is called with 1 formal
+ parameter
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var called = 0;
+
+ function callbackfn(prevVal) {
+ called++;
+ return prevVal;
+ }
+
+ return [11, 12].reduceRight(callbackfn, 100) === 100 && 2 === called;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-11.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-11.js
index ff012c0fb..45c18594a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-11.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-11.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-11.js
- * @description Array.prototype.reduceRight - callbackfn is called with 2 formal parameter
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal) {
- if (prevVal === 100) {
- testResult = true;
- }
- return curVal > 10;
- }
-
- return [11].reduceRight(callbackfn, 100) === true && testResult;
- }
-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: >
+ Array.prototype.reduceRight - callbackfn is called with 2 formal
+ parameter
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal) {
+ if (prevVal === 100) {
+ testResult = true;
+ }
+ return curVal > 10;
+ }
+
+ return [11].reduceRight(callbackfn, 100) === true && testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-12.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-12.js
index ca5c48839..c34d5a716 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-12.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-12.js
@@ -1,27 +1,29 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-12.js
- * @description Array.prototype.reduceRight - callbackfn is called with 3 formal parameter
- */
-
-
-function testcase() {
-
- var testResult = false;
- var arr = [11, 12, 13];
- var initVal = 6.99;
-
- function callbackfn(prevVal, curVal, idx) {
- if (idx === 2) {
- testResult = (prevVal === initVal);
- }
- return curVal > 10 && arguments[3][idx] === curVal;
- }
-
- return arr.reduceRight(callbackfn, initVal) === true && testResult;
- }
-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: >
+ Array.prototype.reduceRight - callbackfn is called with 3 formal
+ parameter
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+ var arr = [11, 12, 13];
+ var initVal = 6.99;
+
+ function callbackfn(prevVal, curVal, idx) {
+ if (idx === 2) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal > 10 && arguments[3][idx] === curVal;
+ }
+
+ return arr.reduceRight(callbackfn, initVal) === true && testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-13.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-13.js
index 6529c4e1b..a05f561d1 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-13.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-13.js
@@ -1,27 +1,29 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-13.js
- * @description Array.prototype.reduceRight - callbackfn is called with 4 formal parameter
- */
-
-
-function testcase() {
-
- var arr = [11, 12, 13];
- var initVal = 6.99;
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 2) {
- testResult = (prevVal === initVal);
- }
- return curVal > 10 && obj[idx] === curVal;
- }
-
- return arr.reduceRight(callbackfn, initVal) === true && testResult;
- }
-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: >
+ Array.prototype.reduceRight - callbackfn is called with 4 formal
+ parameter
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = [11, 12, 13];
+ var initVal = 6.99;
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 2) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal > 10 && obj[idx] === curVal;
+ }
+
+ return arr.reduceRight(callbackfn, initVal) === true && testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-14.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-14.js
index cba99c8df..7ddd3751c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-14.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-14.js
@@ -1,20 +1,20 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-14.js
- * @description Array.prototype.reduceRight - callbackfn uses arguments
- */
-
-
-function testcase() {
-
- function callbackfn() {
- return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1];
- }
-
- return [11].reduceRight(callbackfn, 100) === 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: Array.prototype.reduceRight - callbackfn uses arguments
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ function callbackfn() {
+ return arguments[0] === 100 && arguments[3][arguments[2]] === arguments[1];
+ }
+
+ return [11].reduceRight(callbackfn, 100) === true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-16.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-16.js
index 1cf556943..37fb8adcf 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-16.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-16.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-16.js
- * @description Array.prototype.reduceRight - non-indexed properties are not called on an Array-like object
- */
-
-
-function testcase() {
-
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (prevVal === 8 || curVal === 8) {
- testResult = true;
- }
- }
-
- var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
- Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
- return !testResult;
- }
-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: >
+ Array.prototype.reduceRight - non-indexed properties are not
+ called on an Array-like object
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (prevVal === 8 || curVal === 8) {
+ testResult = true;
+ }
+ }
+
+ var obj = { 0: 11, 10: 12, non_index_property: 8, length: 20 };
+ Array.prototype.reduceRight.call(obj, callbackfn, "initialValue");
+ return !testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-17.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-17.js
index fe3709fc8..64250a66f 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-17.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-17.js
@@ -1,31 +1,33 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-17.js
- * @description Array.prototype.reduceRight - 'accumulator' used for current iteration is the result of previous iteration on an Array
- */
-
-
-function testcase() {
-
- var arr = [11, 12, 13];
- var testResult = true;
- var initVal = 6.99;
- var preResult = initVal;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (prevVal !== preResult) {
- testResult = false;
- }
- preResult = curVal;
- return curVal;
- }
-
- arr.reduceRight(callbackfn, initVal);
-
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - 'accumulator' used for current
+ iteration is the result of previous iteration on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = [11, 12, 13];
+ var testResult = true;
+ var initVal = 6.99;
+ var preResult = initVal;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (prevVal !== preResult) {
+ testResult = false;
+ }
+ preResult = curVal;
+ return curVal;
+ }
+
+ arr.reduceRight(callbackfn, initVal);
+
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-18.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-18.js
index 5acf1a37d..57d2ce986 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-18.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-18.js
@@ -1,29 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-18.js
- * @description Array.prototype.reduceRight - 'accumulator' used for first iteration is the value of 'initialValue' when it is present on an Array
- */
-
-
-function testcase() {
-
- var arr = [11, 12];
- var testResult = false;
- var initVal = 6.99;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === initVal);
- }
- return curVal;
- }
-
- arr.reduceRight(callbackfn, initVal);
-
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - 'accumulator' used for first
+ iteration is the value of 'initialValue' when it is present on an
+ Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = [11, 12];
+ var testResult = false;
+ var initVal = 6.99;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === initVal);
+ }
+ return curVal;
+ }
+
+ arr.reduceRight(callbackfn, initVal);
+
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-19.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-19.js
index 1746fa2f3..7fef529a0 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-19.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-19.js
@@ -1,27 +1,30 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-19.js
- * @description Array.prototype.reduceRight - value of 'accumulator' used for first iteration is the value of max index property which is not undefined when 'initialValue' is not present on an Array
- */
-
-
-function testcase() {
-
- var arr = [11, 12, 13];
- var testResult = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === 1) {
- testResult = (prevVal === 13);
- }
- return curVal;
- }
- arr.reduceRight(callbackfn);
-
- return testResult;
- }
-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: >
+ Array.prototype.reduceRight - value of 'accumulator' used for
+ first iteration is the value of max index property which is not
+ undefined when 'initialValue' is not present on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = [11, 12, 13];
+ var testResult = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === 1) {
+ testResult = (prevVal === 13);
+ }
+ return curVal;
+ }
+ arr.reduceRight(callbackfn);
+
+ return testResult;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-2.js
index a2eb37659..b3f880786 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-2.js
@@ -1,27 +1,29 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-2.js
- * @description Array.prototype.reduceRight - callbackfn called with correct parameters (initialvalue passed)
- */
-
-
-function testcase() {
- var bParCorrect = false;
- var arr = [0, 1, true, null, new Object(), "five"];
- var initialValue = 5.5;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
- return curVal;
- else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
- return curVal;
- else
- return false;
- }
- return arr.reduceRight(callbackfn, initialValue) === 0;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - callbackfn called with correct
+ parameters (initialvalue passed)
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var bParCorrect = false;
+ var arr = [0, 1, true, null, new Object(), "five"];
+ var initialValue = 5.5;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
+ return curVal;
+ else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
+ return arr.reduceRight(callbackfn, initialValue) === 0;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-20.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-20.js
index b50af0424..21e9fb638 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-20.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-20.js
@@ -1,24 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-20.js
- * @description Array.prototype.reduceRight - undefined can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return typeof prevVal === "undefined";
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, undefined) === true && accessed;
- }
-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: Array.prototype.reduceRight - undefined can be used as accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return typeof prevVal === "undefined";
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, undefined) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-21.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-21.js
index 82c95dc33..3df03d3ad 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-21.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-21.js
@@ -1,24 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-21.js
- * @description Array.prototype.reduceRight - null can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === null;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, null) === true && accessed;
- }
-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: Array.prototype.reduceRight - null can be used as accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === null;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, null) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-22.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-22.js
index a89d892e5..168f2e009 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-22.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-22.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-22.js
- * @description Array.prototype.reduceRight - boolean primitive can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === false;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, false) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - boolean primitive can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === false;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, false) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-23.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-23.js
index 2779e1470..5ab9bca32 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-23.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-23.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-23.js
- * @description Array.prototype.reduceRight - number primitive can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === 12;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 12) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - number primitive can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === 12;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 12) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-24.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-24.js
index e1ec10615..506ef4075 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-24.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-24.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-24.js
- * @description Array.prototype.reduceRight - string primitive can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === "hello_";
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, "hello_") === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - string primitive can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === "hello_";
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, "hello_") === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-25.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-25.js
index d83d4d6ae..72d14c97c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-25.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-25.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-25.js
- * @description Array.prototype.reduceRight - Function Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objFunction = function () { };
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objFunction;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objFunction) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - Function Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objFunction = function () { };
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objFunction;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objFunction) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-26.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-26.js
index 8ff9b5b0b..268076002 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-26.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-26.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-26.js
- * @description Array.prototype.reduceRight - Array Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objArray = [];
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objArray;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objArray) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - Array Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objArray = [];
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objArray;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objArray) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-27.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-27.js
index 132749347..fe3abe41a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-27.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-27.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-27.js
- * @description Array.prototype.reduceRight - String Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objString = new String();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objString;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objString) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - String Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objString = new String();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objString;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objString) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-28.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-28.js
index e74b6383a..b36378992 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-28.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-28.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-28.js
- * @description Array.prototype.reduceRight - Boolean Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objBoolean = new Boolean();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objBoolean;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objBoolean) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - Boolean Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objBoolean = new Boolean();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objBoolean;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objBoolean) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-29.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-29.js
index 0d411299c..2c407dc82 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-29.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-29.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-29.js
- * @description Array.prototype.reduceRight - Number Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objNumber = new Number();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objNumber;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objNumber) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - Number Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objNumber = new Number();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objNumber;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objNumber) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-3.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-3.js
index c9ef375d7..2b9c0c8b6 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-3.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-3.js
@@ -1,27 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-3.js
- * @description Array.prototype.reduceRight - callbackfn takes 4 arguments
- */
-
-
-function testcase() {
-
- var bCalled = false;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- bCalled = true;
- if(prevVal === true && arguments.length === 4)
- return true;
- else
- return false;
- }
- var arr = [0,1,2,3,4,5,6,7,8,9];
- if(arr.reduceRight(callbackfn,true) === true && bCalled === true)
- return true;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: Array.prototype.reduceRight - callbackfn takes 4 arguments
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var bCalled = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ bCalled = true;
+ if(prevVal === true && arguments.length === 4)
+ return true;
+ else
+ return false;
+ }
+ var arr = [0,1,2,3,4,5,6,7,8,9];
+ if(arr.reduceRight(callbackfn,true) === true && bCalled === true)
+ return true;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-30.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-30.js
index dd579c6b8..cef981a06 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-30.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-30.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-30.js
- * @description Array.prototype.reduceRight - the Math Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === Math;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, Math) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - the Math Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === Math;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, Math) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-31.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-31.js
index 54a3ec51a..af07e44bd 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-31.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-31.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-31.js
- * @description Array.prototype.reduceRight - Date Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objDate = new Date();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objDate;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objDate) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - Date Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objDate = new Date();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objDate;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objDate) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js
index efd8016ac..9425b4b27 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js
@@ -1,25 +1,27 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-32.js
- * @description Array.prototype.reduceRight - RegExp Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objRegExp = new RegExp();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objRegExp;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objRegExp) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - RegExp Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objRegExp = new RegExp();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objRegExp;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objRegExp) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-33.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-33.js
index c7b706732..b60e61d2c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-33.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-33.js
@@ -1,24 +1,24 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-33.js
- * @description Array.prototype.reduceRight - the JSON can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === JSON;
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, JSON) === true && accessed;
- }
-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: Array.prototype.reduceRight - the JSON can be used as accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === JSON;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, JSON) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-34.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-34.js
index 426106ff1..7918bdfd8 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-34.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-34.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-34.js
- * @description Array.prototype.reduceRight - Error Object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var objError = new RangeError();
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === objError;
- }
-
- var obj = { 0: 11, length: 1 };
-
-
- return Array.prototype.reduceRight.call(obj, callbackfn, objError) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - Error Object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var objError = new RangeError();
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === objError;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, objError) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-35.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-35.js
index 479de4a15..baa9c3a25 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-35.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-35.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-35.js
- * @description Array.prototype.reduceRight - the Arguments object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- var arg;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === arg;
- }
-
- var obj = { 0: 11, length: 1 };
-
- (function fun() {
- arg = arguments;
- }(10, 11, 12, 13));
-
- return Array.prototype.reduceRight.call(obj, callbackfn, arg) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - the Arguments object can be used as
+ accumulator
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var arg;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === arg;
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ (function fun() {
+ arg = arguments;
+ }(10, 11, 12, 13));
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, arg) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-37.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-37.js
index ccdf48c96..e2270d03c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-37.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-37.js
@@ -1,24 +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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-37.js
- * @description Array.prototype.reduceRight - the global object can be used as accumulator
- */
-
-
-function testcase() {
-
- var accessed = false;
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- return prevVal === fnGlobalObject();
- }
-
- var obj = { 0: 11, length: 1 };
-
- return Array.prototype.reduceRight.call(obj, callbackfn, fnGlobalObject()) === true && accessed;
- }
-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: >
+ Array.prototype.reduceRight - the global object can be used as
+ accumulator
+includes:
+ - runTestCase.js
+ - fnGlobalObject.js
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ return prevVal === fnGlobalObject();
+ }
+
+ var obj = { 0: 11, length: 1 };
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, fnGlobalObject()) === true && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4-s.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4-s.js
index 85b067a32..945424c57 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4-s.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4-s.js
- * @description Array.prototype.reduceRight - undefined passed as thisValue to strict callbackfn
- * @onlyStrict
- */
-
-
-function testcase() {
- var innerThisCorrect = false;
- function callbackfn(prevVal, curVal, idx, obj)
- {
- "use strict";
- innerThisCorrect = this===undefined;
- return true;
- }
- [0].reduceRight(callbackfn,true);
- return innerThisCorrect;
- }
-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: >
+ Array.prototype.reduceRight - undefined passed as thisValue to
+ strict callbackfn
+flags: [onlyStrict]
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var innerThisCorrect = false;
+ function callbackfn(prevVal, curVal, idx, obj)
+ {
+ "use strict";
+ innerThisCorrect = this===undefined;
+ return true;
+ }
+ [0].reduceRight(callbackfn,true);
+ return innerThisCorrect;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4.js
index 3d8ab24a3..a08582783 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4.js
@@ -1,30 +1,32 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-4.js
- * @description Array.prototype.reduceRight - k values are passed in acending numeric order
- */
-
-
-function testcase() {
-
- var arr = [0, 1, 2, 3, 4, 5];
- var lastIdx = arr.length - 1;
- var accessed = false;
- var result = true;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (lastIdx !== idx) {
- result = false;
- } else {
- lastIdx--;
- }
- }
- arr.reduceRight(callbackfn, 1);
- return result && accessed;
- }
-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: >
+ Array.prototype.reduceRight - k values are passed in acending
+ numeric order
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var arr = [0, 1, 2, 3, 4, 5];
+ var lastIdx = arr.length - 1;
+ var accessed = false;
+ var result = true;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (lastIdx !== idx) {
+ result = false;
+ } else {
+ lastIdx--;
+ }
+ }
+ arr.reduceRight(callbackfn, 1);
+ return result && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-5.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-5.js
index 013672cc3..78c0b6e7a 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-5.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-5.js
@@ -1,36 +1,38 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-5.js
- * @description Array.prototype.reduceRight - k values are accessed during each iteration and not prior to starting the loop on an Array
- */
-
-
-function testcase() {
- var arr = [11, 12, 13, 14];
- var kIndex = [];
- var result = true;
- var called = 0;
-
- //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
- function callbackfn(preVal, curVal, idx, o) {
- //Each position should be visited one time, which means k is accessed one time during iterations.
- called++;
- if (typeof kIndex[idx] === "undefined") {
- //when current position is visited, its next index should has been visited.
- if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") {
- result = false;
- }
- kIndex[idx] = 1;
- } else {
- result = false;
- }
- }
-
- arr.reduceRight(callbackfn, 1);
- return result && called === 4;
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ Array.prototype.reduceRight - k values are accessed during each
+ iteration and not prior to starting the loop on an Array
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ var arr = [11, 12, 13, 14];
+ var kIndex = [];
+ var result = true;
+ var called = 0;
+
+ //By below way, we could verify that k would be setted as 0, 1, ..., length - 1 in order, and each value will be setted one time.
+ function callbackfn(preVal, curVal, idx, o) {
+ //Each position should be visited one time, which means k is accessed one time during iterations.
+ called++;
+ if (typeof kIndex[idx] === "undefined") {
+ //when current position is visited, its next index should has been visited.
+ if (idx !== arr.length - 1 && typeof kIndex[idx + 1] === "undefined") {
+ result = false;
+ }
+ kIndex[idx] = 1;
+ } else {
+ result = false;
+ }
+ }
+
+ arr.reduceRight(callbackfn, 1);
+ return result && called === 4;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-7.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-7.js
index b38af7d9d..9be98964c 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-7.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-7.js
@@ -1,34 +1,36 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-7.js
- * @description Array.prototype.reduceRight - unhandled exceptions happened in callbackfn terminate iteration
- */
-
-
-function testcase() {
-
- var accessed = false;
-
- function callbackfn(prevVal, curVal, idx, obj) {
- if (idx < 10) {
- accessed = true;
- }
- if (idx === 10) {
- throw new Error("Exception occurred in callbackfn");
- }
- }
-
- var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
-
- try {
- Array.prototype.reduceRight.call(obj, callbackfn, 1);
- return false;
- } catch (ex) {
- return !accessed;
- }
- }
-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: >
+ Array.prototype.reduceRight - unhandled exceptions happened in
+ callbackfn terminate iteration
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx < 10) {
+ accessed = true;
+ }
+ if (idx === 10) {
+ throw new Error("Exception occurred in callbackfn");
+ }
+ }
+
+ var obj = { 0: 11, 4: 10, 10: 8, length: 20 };
+
+ try {
+ Array.prototype.reduceRight.call(obj, callbackfn, 1);
+ return false;
+ } catch (ex) {
+ return !accessed;
+ }
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-8.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-8.js
index 2e6b0c1f7..ee5615279 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-8.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-8.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.
-/**
- * @path ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-8.js
- * @description Array.prototype.reduceRight - element changed by callbackfn on previous iterations is observed
- */
-
-
-function testcase() {
-
- var accessed = false;
- var obj = { 0: 11, 1: 12, length: 2 };
- function callbackfn(prevVal, curVal, idx, obj) {
- accessed = true;
- if (idx === 1) {
- obj[idx - 1] = 8;
- }
- return curVal > 10;
- }
-
- return Array.prototype.reduceRight.call(obj, callbackfn, 1) === false && accessed;
- }
-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: >
+ Array.prototype.reduceRight - element changed by callbackfn on
+ previous iterations is observed
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var accessed = false;
+ var obj = { 0: 11, 1: 12, length: 2 };
+ function callbackfn(prevVal, curVal, idx, obj) {
+ accessed = true;
+ if (idx === 1) {
+ obj[idx - 1] = 8;
+ }
+ return curVal > 10;
+ }
+
+ return Array.prototype.reduceRight.call(obj, callbackfn, 1) === false && accessed;
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-9.js b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-9.js
index bac8e4e6c..eec75795d 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-9.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-9.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 ch15/15.4/15.4.4/15.4.4.22/15.4.4.22-9-c-ii-9.js
- * @description Array.prototype.reduceRight - callbackfn is called with 0 formal parameter
- */
-
-
-function testcase() {
-
- var called = 0;
-
- function callbackfn() {
- called++;
- return true;
- }
-
- return [11, 12].reduceRight(callbackfn, 11) === true && 2 === called;
- }
-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: >
+ Array.prototype.reduceRight - callbackfn is called with 0 formal
+ parameter
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+
+ var called = 0;
+
+ function callbackfn() {
+ called++;
+ return true;
+ }
+
+ return [11, 12].reduceRight(callbackfn, 11) === true && 2 === called;
+ }
+runTestCase(testcase);