Dashboardopencode-loreembedding-worker.js Bun probe

embedding-worker.js Bun probe

Category: gotcha
Confidence: 1.00
ID: 01a0ad05-9b95-7cc6-80be-00ad9eb3fc03
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 0VohlSjRK0TAIkdIN
Created: 2026-09-17 01:40:21
Updated: 2026-09-17 01:40:21

Content

Trap: running embedding-worker.js in Node while injecting Bun-like globals looks like Bun coverage because the Bun branch is selected, but Node still supplies different module, loader, and worker semantics. Fix: execute the emitted Bun worker under Bun for artifact validation; keep separate Node Worker coverage for CJS. Unsupported-host test branches must report an explicit skip rather than silently return.

Move to: