What should the behavior of Error.captureStackTrace be when the object provided is an object with an [[ErrorData]] slot?
My preference right now would be to reset the internal error stack info, but not add a new private field or own stack property (this is partially assuming that we standardize a prototype stack property for Errors in https://github.com/tc39/proposal-error-stacks)
What should the behavior of
Error.captureStackTracebe when the object provided is an object with an[[ErrorData]]slot?My preference right now would be to reset the internal error stack info, but not add a new private field or own stack property (this is partially assuming that we standardize a prototype stack property for Errors in https://github.com/tc39/proposal-error-stacks)