« Bugzilla Issues Index
#13 — Checks 3 and 4 of S9.9_A1.js are invalid according to ES5
- bug_id:
13
- creation_ts:
2011-02-10 15:12:00 -0800
- short_desc:
Checks 3 and 4 of S9.9_A1.js are invalid according to ES5
- delta_ts:
2011-09-25 12:00:05 -0700
- product:
Test262
- component:
ECMA-262 Tests
- version:
unspecified
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- bug_file_loc:
http://hg.ecmascript.org/tests/test262/rev/e275fa522f77
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Dave Fugate
- assigned_to:
Mark S. Miller
- cc:
erights
- commentid:
18
- comment_count:
0
- who:
Dave Fugate
- bug_when:
2011-02-10 15:12:43 -0800
Checks 3 and 4 of S9.9_A1.js check that the following snippets throw a TypeError when called:
for(var y in undefined) y = 2;
for(var z in this.foo) z = 2;
operating on the assumption that "for (x in y)" throws whenever y===undefined.
This is incorrect. According to ES5 (12.6.4 step 3), for-in simply returns (normal, empty, empty) when it encounters null or defined.
Disabling this test until Google has a chance to fix it.
- commentid:
19
- comment_count:
1
- who:
Dave Fugate
- bug_when:
2011-02-10 15:16:05 -0800
S9.9_A2.js has the exact same problem, only with null instead of undefined.
- commentid:
268
- comment_count:
2
- who:
Dave Fugate
- bug_when:
2011-07-06 11:30:23 -0700
Test is still invalid.
- commentid:
480
- comment_count:
3
- who:
Mark S. Miller
- bug_when:
2011-09-25 12:00:05 -0700
Fixed at http://hg.ecmascript.org/tests/test262/rev/e275fa522f77