summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/transplant-dom-slot2.js
blob: c4c2e8c48273e79c625797ecccd878d03024dd48 (plain)
1
2
3
4
5
6
7
// Make sure to transplant DOM_OBJECT_SLOT2 for FakeDOMObject
let source = new FakeDOMObject();
assertEq(source.slot, 42);
let {object: target, transplant} = transplantableObject({object: source});
transplant(this);
assertEq(source.slot, 42);
assertEq(target.slot, 42);