()
| 160 | // Check that a LoadIC for a dictionary field works, even |
| 161 | // when the dictionary probe misses. |
| 162 | function load_deleted_property_using_IC() { |
| 163 | var x = new Object(); |
| 164 | x.a = 3; |
| 165 | x.b = 4; |
| 166 | x.c = 5; |
| 167 | |
| 168 | delete x.c; |
| 169 | assertEquals(3, load_a(x)); |
| 170 | assertEquals(3, load_a(x)); |
| 171 | delete x.a; |
| 172 | assertTrue(typeof load_a(x) === 'undefined', "x.a is gone"); |
| 173 | assertTrue(typeof load_a(x) === 'undefined', "x.a is gone"); |
| 174 | } |
| 175 | |
| 176 | function load_a(x) { |
| 177 | return x.a; |
no test coverage detected