comparison: js/src/jit-test/tests/basic/testBug604210.js
js/src/jit-test/tests/basic/testBug604210.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 function f() { |
|
2 var msg = ''; |
|
3 try { |
|
4 var x = undefined; |
|
5 print(x.foo); |
|
6 } catch (e) { |
|
7 msg = '' + e; |
|
8 } |
|
9 assertEq(msg, "TypeError: x is undefined"); |
|
10 } |
|
11 f(); |