]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/mozilla/ecma_2/Exceptions/statement-005.js
2 File Name: statement-005.js
3 Corresponds To: 12.6.3-8-n.js
4 ECMA Section: 12.6.3 The for...in Statement
6 Author: christine@netscape.com
7 Date: 11 september 1997
9 var SECTION
= "statement-005";
10 var VERSION
= "JS1_4";
11 var TITLE
= "The for..in statment";
14 writeHeaderToLog( SECTION
+ " "+ TITLE
);
16 var testcases
= new Array();
19 var result
= "Failed";
20 var exception
= "No exception thrown";
21 var expect
= "Passed";
24 var o
= new MyObject();
27 eval("for (1 in o) {\n"
28 + "result += this[p];"
32 exception
= e
.toString();
35 testcases
[tc
++] = new TestCase(
37 "bad left-hand side expression" +
38 " (threw " + exception
+")",