bun icon indicating copy to clipboard operation
bun copied to clipboard

Wrap finalizer for PromiseRaw failed (@napi-rs/canvas)

Open RiskyMH opened this issue 3 months ago • 1 comments

What version of Bun is running?

1.1.36+ededc168c

What platform is your computer?

Linux 5.15.153.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Install @napi-rs/canvas and make a JS file with:

import { Image } from "@napi-rs/canvas/js-binding.js"

const image = new Image();
image.src = "./anythinghere"; // doesnt need to be valid

What is the expected behavior?

no error or crash, like node

What do you see instead?

$ bun index.mjs
2 | import { Image } from "@napi-rs/canvas/js-binding.js"
3 |
4 | const image = new Image();
    ^
error: Wrap finalizer for PromiseRaw failed
 code: "ObjectExpected"

      at /index.mjs:4:1

Additional information

Reported on discord: https://discord.com/channels/876711213126520882/1310131351533654016

RiskyMH avatar Nov 24 '24 09:11 RiskyMH