* Add `target: "es2022"`
* Add Object.hasOwn
* formatToParts is es2018
* ref update
* optional parameter
* Revert "optional parameter"
This reverts commit e67d6e5f60
.
* undefined
* error cause
* Lint fix
Co-authored-by: Orta <git@orta.io>
12 lines
329 B
Plaintext
12 lines
329 B
Plaintext
=== tests/cases/compiler/errorCause.ts ===
|
|
new Error("foo", { cause: new Error("bar") });
|
|
>new Error("foo", { cause: new Error("bar") }) : Error
|
|
>Error : ErrorConstructor
|
|
>"foo" : "foo"
|
|
>{ cause: new Error("bar") } : { cause: Error; }
|
|
>cause : Error
|
|
>new Error("bar") : Error
|
|
>Error : ErrorConstructor
|
|
>"bar" : "bar"
|
|
|