|
traceContext.error = Object.assign(({}, err)); |
SyntaxError: Unexpected token ','
traceContext.error = Object.assign({}, err); // ok
The above syntax causes an error in Bun.
I use Nodejs and Bun, but I get an error in Bun.
Currently, it still doesn't work on Bun 1.1.34, but I'm waiting for the day when it will work.