« Bugzilla Issues Index
#269 — S12.6.1_A13_T3, S12.6.2_A13_T3, S12.6.4_A13_T3 are invalid
- bug_id:
269
- creation_ts:
2012-02-21 18:23:00 -0800
- short_desc:
S12.6.1_A13_T3, S12.6.2_A13_T3, S12.6.4_A13_T3 are invalid
- delta_ts:
2012-02-24 14:30:10 -0800
- product:
Test262
- component:
ECMA-262 Tests
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Dave Fugate
- commentid:
644
- comment_count:
0
- who:
André Bargull
- bug_when:
2012-02-21 18:23:01 -0800
All three tests try to declare an unnamed function declaration. This is obviously not right as function declarations need to have an identifier.
In addition to that, the tests are invalid as well. According to the note in "ES5.1 - 12 Statements", it's only recommended to prohibit function declarations as statements. Therefore the tests should rather be moved into the "bestPractice" directory and additionally set to strict-mode-only execution per [1].
[1] http://wiki.ecmascript.org/doku.php?id=conventions:no_non_standard_strict_decls
- commentid:
645
- comment_count:
1
- who:
André Bargull
- bug_when:
2012-02-21 18:25:14 -0800
Also applies to S12.5_A9_T3
- commentid:
669
- comment_count:
2
- who:
Dave Fugate
- bug_when:
2012-02-24 14:30:10 -0800
Fixed in Hg. Fixes to live website will go out with next set of large changes.