Skip to content
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

throws in browser #23

Open
james-tindal opened this issue Sep 11, 2024 · 0 comments
Open

throws in browser #23

james-tindal opened this issue Sep 11, 2024 · 0 comments

Comments

@james-tindal
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Use @decorators/bind in a browser bundle
Run in a modern browser with setting cross-domain headers
I'm using npm and nextjs

Expected behavior
Not throw

Screenshots
image
image

The error is coming from @type/is

const SharedArrayBufferPrototypeGetByteLength = uncurryGetter(SharedArrayBuffer.prototype, "byteLength");

SharedArrayBuffer is not in scope.
You can fix this by moving that line ^ inside the function isSharedArrayBuffer, so it doesn't get called unless someone calls the function.

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

No branches or pull requests

1 participant