зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1821959 - Add test case. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D173555
This commit is contained in:
Родитель
f02f8082c4
Коммит
0393f9c843
|
@ -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());
|
Загрузка…
Ссылка в новой задаче