summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/delete-last-check-proto.js
blob: 5384c8e33609b81a37dfea8686170ce8f503623e (plain)
1
2
3
4
5
6
7
8
// Test that removing a non-dictionary property does not roll back the object's
// shape to the previous one if the protos are different.

var o = {x: 1};
o.y = 2;
Object.setPrototypeOf(o, null);
delete o.y;
assertEq(Object.getPrototypeOf(o), null);