Skip to content

[@rollup/plugin-commonjs] Function has non-object prototype 'undefined' in instanceof check #1867

Open
@dake3601

Description

@dake3601

Expected Behavior

Being able to import the default of "call-bind-apply-helpers" and have the page load:

f = 0
fBound = 1

Actual Behavior

actualApply-fd0d571b.js:12  Uncaught TypeError: Function has non-object prototype 'undefined' in instanceof check
    at [Symbol.hasInstance] (<anonymous>)
    at call.a (actualApply-fd0d571b.js:12:13)
    at callBindBasic (index.js:25:10)
    at main.js:7:16

Additional Information

The following code throws if (this instanceof a) { and breaks the code.

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