MCPcopy Create free account
hub / github.com/nodejs/node / load_deleted_property_using_IC

Function load_deleted_property_using_IC

deps/v8/test/mjsunit/delete.js:162–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160// Check that a LoadIC for a dictionary field works, even
161// when the dictionary probe misses.
162function 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
176function load_a(x) {
177 return x.a;

Callers 1

delete.jsFile · 0.85

Calls 3

load_aFunction · 0.85
assertTrueFunction · 0.70
assertEqualsFunction · 0.50

Tested by

no test coverage detected