Conversation
This makes it easier to programmatically handle possible future error types, especially for marshalling into other languages (like C). Fixes gpuweb#1884
|
Adding to editor meeting agenda to propose this to the tacit resolution queue. |
|
meeting: Doesn't seem JavaScripty - and can do the same thing with I hadn't thought of doing this (thanks Kelsey for thinking of it) and knowing it, I'm inclined to close this PR. Maybe I'll add a note into the spec mentioning that you can do this. |
|
OK, I thought about this some more. Fundamentally, using Now, of course, returning objects with a new, never-before-seen value for To improve this I've pushed a commit to this PR that changes the |
|
We discussed this on the editors call today. I'm not a fan of making the After talking it over some more we decided that a good path forward would be to use a common base class for the errors that had a |
…eb#2853 WebGPU spec still not great, does not have a general error code. See also gpuweb/gpuweb#2750 and gpuweb/gpuweb#1884 .
|
Updated https://github.com/juj/wasm_webgpu/ to this change today. I notice that this spec change does not really help things out here, the original issues reported in #1884 are still present. |
This makes it easier to programmatically handle possible future error
types, especially for marshalling into other languages (like C).
Fixes #1884
Preview | Diff