Skip to content

Commit f1badcd

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Update Error.prototype.cause to be any type. It is not bounded to Error.
PiperOrigin-RevId: 719029862
1 parent a0accef commit f1badcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

externs/es3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@ Error.captureStackTrace = function(error, opt_constructor){};
25842584

25852585
/**
25862586
* New in ES 2022, adds a cause to the error which is useful for chaining errors
2587-
* @type {?Error}
2587+
* @type {*}
25882588
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
25892589
*/
25902590
Error.prototype.cause;

0 commit comments

Comments
 (0)