Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dake3601 opened this issue May 6, 2025 · 0 comments · May be fixed by #1868
Open

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

dake3601 opened this issue May 6, 2025 · 0 comments · May be fixed by #1868

Comments

@dake3601
Copy link

dake3601 commented May 6, 2025

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.

@dake3601 dake3601 linked a pull request May 6, 2025 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant