test: enable

This commit is contained in:
Alexander Akait 2025-07-03 13:49:34 +03:00 committed by GitHub
parent 87f648ebf0
commit 0b51fad980
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 3 additions and 15 deletions

View File

@ -1 +0,0 @@
module.exports = config => !config.minimize;

View File

@ -1 +0,0 @@
module.exports = config => !config.minimize;

View File

@ -1,7 +1,4 @@
module.exports = function (config) {
// terser doesn't support static {}
if (config.mode === "production") return false;
try {
eval("class A { static {} }");
return true;

View File

@ -1,9 +1,3 @@
const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding");
module.exports = config => {
// XXX: Disable this test if Terser is used because it does not support ES 2019
if (config.mode === "production") {
return false;
}
return supportsOptionalCatchBinding();
};
module.exports = () => supportsOptionalCatchBinding();

View File

@ -1,3 +1,3 @@
const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining");
module.exports = config => !config.minimize && supportsOptionalChaining();
module.exports = config => supportsOptionalChaining();

View File

@ -3,8 +3,7 @@ const supportsES6 = require("../../../helpers/supportsES6");
const supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring");
const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring");
module.exports = config =>
!config.minimize &&
module.exports = () =>
supportsES6() &&
supportDefaultAssignment() &&
supportsObjectDestructuring() &&