webpack/test/helpers/supportsErrorCause.js

9 lines
163 B
JavaScript
Raw Normal View History

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