Skip to content

Destructuring causes exceptions #536

New issue

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

By clicking “No 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? No Sign in to your account

Closed
robertleeplummerjr opened this issue Nov 26, 2019 · 0 comments
Closed

Destructuring causes exceptions #536

robertleeplummerjr opened this issue Nov 26, 2019 · 0 comments
Assignees

Comments

@robertleeplummerjr
Copy link
Member

A GIF or MEME to give some spice of the internet

What is wrong?

GPU kernels don't support https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment, but should.

Where does it happen?

How do we replicate the issue?

How important is this (1-5)?

4 New javascript and stuff that has been transpiled often will use destructure.

Expected behavior (i.e. solution)

This should simply be handled.

Other Comments

@robertleeplummerjr robertleeplummerjr self-assigned this Nov 26, 2019
ammyk9 pushed a commit to ammyk9/gpu.js that referenced this issue Aug 8, 2024
...it kind of snowballed from some needs
Fixes gpujs#521 - If `tactic` is not set, check precision allowed from WebGL, and automatically change based off needs, otherwise use value from `tactic`.
Fixes gpujs#535 - Internally check if texture from argument is the same as output, if so, clone this texture, and then clean it up after the kernel runs.
Fixes gpujs#536 - Normalize all declarations to non-destructured, and then parse
Fixes gpujs#537 - Change logic
Fixes gpujs#538 - Found the GL script that would work, and reduced the methods to use it
Fixes gpujs#539 - Found a better way of testing random, and this gives me an error for 1 in 10 runs, acceptable

Some refactoring for less duplicate code and documentation
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant