webpack/test/helpers/supportsErrorCause.js

7 lines
148 B
JavaScript
Raw Normal View History

2025-04-23 06:27:18 +08:00
module.exports = function supportsErrorCause() {
return (
typeof new Error("test", { cause: new Error("cause") }).cause !==
"undefined"
);
};