Debian Codegraph @

js/src/jit-test/tests/basic/delete-last-check-proto.js

raw
1 // Test that removing a non-dictionary property does not roll back the object's
2 // shape to the previous one if the protos are different.
3
4 var o = {x: 1};
5 o.y = 2;
6 Object.setPrototypeOf(o, null);
7 delete o.y;
8 assertEq(Object.getPrototypeOf(o), null);