10 lines
312 B
JavaScript
10 lines
312 B
JavaScript
const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");
|
|
|
|
module.exports = function(config) {
|
|
// XXX: Disable this test if Terser is used because it does not support ES 2019
|
|
if (config.mode === "production") {
|
|
return false;
|
|
}
|
|
return supportsOptionalCatchBinding();
|
|
};
|