Wrapping errors in JavaScript with Error.cause