Context
The sequential Bun corpus frontier is js/third_party/@napi-rs/canvas/napi-rs-canvas.test.ts at position 3952/4708, following completed Fastify WebSocket work in #211. This contributes to #66.
Current gap
The module is classified as unsupported module syntax because @napi-rs/canvas and jimp are not yet represented. The copied test compares exact 200×200 RGBA output after fill, stroke, PNG load, and draw operations.
Acceptance criteria
- Named
@napi-rs/canvasandjimpimports prepare and resolve. - Canvas 2D fill/stroke state and rectangle rasterization match the tested behavior.
loadImage()decodes the copied RGBA PNG fixture.drawImage()copies the source pixels with correct positioning/clipping.encode('png')/Jimp.read()preserve exact bitmap data for comparison.- The copied test passes and is pinned in the permanent third-party gate.