2 people reported

All time, since Sep 1.

captureStackTrace throws with wrapper

“Only the combination of the two fails: the default Error.prepareStackTrace, when a wrapper calls it, rejects objects that are not real errors.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/5588/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Error.captureStackTrace throws after delegating prepareStackTrace wrapper. A wrapper that calls the original native Error.prepareStackTrace makes Error.captureStackTrace reject objects that Node.js accepts, breaking Babel and source-map-support users.

Is this your bug?

File my report
Where
Error stack API
Error text
TypeError: First argument must be an Error object
Versions
1.4.0 to 1.4.3
Platforms
Linux, macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. Default Error.prepareStackTrace throws "First argument must be an Error object" when called for Error.captureStackTrace on a non-Error object#46393
  2. Error.captureStackTrace throws 'First argument must be an Error object' after a delegating Error.prepareStackTrace wrapper is installed#41151

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.