Skip to content

bug report when curr is null,it goes wrong. #144

@JokerSora

Description

@JokerSora

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; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions