You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// bun index.tsimport{buildBn128,F1Field}from"ffjavascript";asyncfunctionmain(){letbn128=awaitbuildBn128();constF=newF1Field(bn128.r);consta=F.e("9");constb=F.sqrt(a);console.log(b)bn128.terminate();}main()
Errors with
170 | event.data = data;
171 |if (q == null) self.dispatchEvent(event);else q.push(event);
172 | });
173 | threads.parentPort.on('error', err => {
174 | err.type = 'Error';
175 | self.dispatchEvent(err);
^
TypeError: Argument 1 ('event') to EventTarget.dispatchEvent must be an instance of Event
at /Users/anudit/Documents/GitHub/semaphore-minimal/node_modules/web-worker/cjs/node.js:175:5
[1] 75686 trace trap bun index.ts
What is the expected behavior?
Expected output when I run with pnpx tsx index.ts is 3n
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.8+89d25807f
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
Minimal Reproduction,
Errors with
What is the expected behavior?
Expected output when I run with
pnpx tsx index.ts
is3n
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: