-   Notifications  
You must be signed in to change notification settings  - Fork 5
 
Open
Description
I wrote the following minimal code
import { create, globals } from "webgpu"; Object.assign(globalThis, globals); const navigator = { gpu: create([]) }; // do some webgpu const device = await (await navigator.gpu.requestAdapter()).requestDevice(); device.addEventListener("uncapturederror", (a) => { console.log(a); });which throws an error at runtime
> node a.js file:///C:/Users/Stefnotch/Downloads/math2model-use-gpu/a.js:8 device.addEventListener("uncapturederror", (a) => { ^ TypeError: no overload matched for addEventListener: object is not of the correct interface type at file:///C:/Users/Stefnotch/Downloads/math2model-use-gpu/a.js:8:8 Node.js v23.7.0 Tested with the latest version of this package that is available on npm.
Metadata
Metadata
Assignees
Labels
No labels