"use strict"; const Base = { test: 1, }; const obj = { test: 2, set() { return super.test = 3; }, }; Object.setPrototypeOf(obj, Base); assert.equal(obj.set(), 3); assert.equal(Base.test, 3); assert.equal(obj.test, 2);