archives

« Bugzilla Issues Index

#269 — S12.6.1_A13_T3, S12.6.2_A13_T3, S12.6.4_A13_T3 are invalid


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


Also applies to S12.5_A9_T3


Fixed in Hg. Fixes to live website will go out with next set of large changes.