]>
Commit | Line | Data |
---|---|---|
b37bf2e1 A |
1 | /** |
2 | File Name: expression-015.js | |
3 | Corresponds To: ecma/Expressions/11.2.3-2-n.js | |
4 | ECMA Section: 11.2.3. Function Calls | |
5 | Description: | |
6 | Author: christine@netscape.com | |
7 | Date: 12 november 1997 | |
8 | */ | |
9 | var SECTION = "expression-015"; | |
10 | var VERSION = "JS1_4"; | |
11 | var TITLE = "Function Calls"; | |
12 | ||
13 | startTest(); | |
14 | writeHeaderToLog( SECTION + " "+ TITLE); | |
15 | ||
16 | var tc = 0; | |
17 | var testcases = new Array(); | |
18 | ||
19 | var result = "Failed"; | |
20 | var exception = "No exception thrown"; | |
21 | var expect = "Passed"; | |
22 | ||
23 | try { | |
24 | eval("result = 3.valueOf();"); | |
25 | } catch ( e ) { | |
26 | result = expect; | |
27 | exception = e.toString(); | |
28 | } | |
29 | ||
30 | testcases[tc++] = new TestCase( | |
31 | SECTION, | |
32 | "3.valueOf()" + | |
33 | " (threw " + exception +")", | |
34 | expect, | |
35 | result ); | |
36 | ||
37 | test(); |