close
Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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.
  • Loading branch information
BlobMaster41 committed Dec 12, 2025
commit bafc198a1abe38e19f1a8bb7968df4f779018e44
4 changes: 2 additions & 2 deletions tests/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ async function runTest(basename) {

if (config.features) {
config.features.forEach(feature => {
if (!features.includes(feature) && !features.includes("*")) {
let featureConfig = featuresConfig[feature];
if (!features.includes(feature) && !features.includes("*") && !featureConfig.enabled) {
missing_features.push(feature);
}
let featureConfig = featuresConfig[feature];
if (featureConfig.asc_flags) {
featureConfig.asc_flags.forEach(flag => {
Array.prototype.push.apply(asc_flags, flag.split(" "));
Expand Down
3 changes: 2 additions & 1 deletion tests/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"--enable exception-handling"
],
"v8_flags": [
]
],
"enabled": true
},
"simd": {
"asc_flags": [
Expand Down