I packaged a vue3 class style npm package,and made such running time error.
function getSuperSlot(obj) { let curr = Object.getPrototypeOf(obj); //here I don't kown why curr get a null,then it goes wrong while (curr.constructor !== Base) { const slot = getSlot(curr); if (slot) { return slot; } curr = Object.getPrototypeOf(curr); } return null; }