Skip to content

Commit bafc198

Browse files
committed
Enable exception-handling feature in tests
Added the 'enabled' flag for the exception-handling feature in features.json and updated the test logic in compiler.js to check this flag when determining missing features.
1 parent 83e2b37 commit bafc198

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/compiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ async function runTest(basename) {
254254

255255
if (config.features) {
256256
config.features.forEach(feature => {
257-
if (!features.includes(feature) && !features.includes("*")) {
257+
let featureConfig = featuresConfig[feature];
258+
if (!features.includes(feature) && !features.includes("*") && !featureConfig.enabled) {
258259
missing_features.push(feature);
259260
}
260-
let featureConfig = featuresConfig[feature];
261261
if (featureConfig.asc_flags) {
262262
featureConfig.asc_flags.forEach(flag => {
263263
Array.prototype.push.apply(asc_flags, flag.split(" "));

tests/features.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"--enable exception-handling"
2828
],
2929
"v8_flags": [
30-
]
30+
],
31+
"enabled": true
3132
},
3233
"simd": {
3334
"asc_flags": [

0 commit comments

Comments
 (0)