mirror of https://github.com/webpack/webpack.git
7 lines
148 B
JavaScript
7 lines
148 B
JavaScript
|
module.exports = function supportsErrorCause() {
|
||
|
return (
|
||
|
typeof new Error("test", { cause: new Error("cause") }).cause !==
|
||
|
"undefined"
|
||
|
);
|
||
|
};
|