J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 1 | if (Testobj.getVal() != 'Hello World') { |
2 | throw "unexpected value"; | ||||
3 | } | ||||
4 | |||||
5 | Testobj = "a string"; | ||||
6 | if (Testobj.getVal != undefined || | ||||
7 | Testobj != 'a string') { | ||||
8 | throw "can' change Testobj?"; | ||||
9 | } |