« Bugzilla Issues Index

#13 — Checks 3 and 4 of S9.9_A1.js are invalid according to ES5

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 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.

S9.9_A2.js has the exact same problem, only with null instead of undefined.

Test is still invalid.

Fixed at