blob: d7fbe7260facd5e908d38aaef38fbe7949bf6d58 (
plain)
1
2
3
4
5
6
7
|
// Transplant an object that is using the shifted-dense-elements optimization
const v1 = this.transplantableObject();
const v2 = v1.object;
Array.prototype.push.call(v2, 0);
Array.prototype.push.call(v2, 0);
Array.prototype.shift.call(v2);
v1.transplant(newGlobal());
|