Bug 1821959 - Add test case. r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D173555
This commit is contained in:
Ted Campbell 2023-05-23 19:07:14 +00:00
Родитель f02f8082c4
Коммит 0393f9c843
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,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());