TypeScript/tests/baselines/reference/errorCause(target=es2021).js
Kagami Sascha Rosylight ae582a22ee
Add target: "es2022" (#46291)
* 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>
2021-11-04 10:55:11 -07:00

7 lines
143 B
TypeScript

//// [errorCause.ts]
new Error("foo", { cause: new Error("bar") });
//// [errorCause.js]
new Error("foo", { cause: new Error("bar") });