diff --git a/boa_tester/src/edition.rs b/boa_tester/src/edition.rs index 8ad0ba873f..aafb18eb4c 100644 --- a/boa_tester/src/edition.rs +++ b/boa_tester/src/edition.rs @@ -341,7 +341,10 @@ impl SpecEdition { pub(crate) fn from_test_metadata(metadata: &MetaData) -> Result> { let mut min_edition = if metadata.flags.contains(&TestFlag::Async) { Self::ES8 - } else if metadata.flags.contains(&TestFlag::Module) { + } else if metadata.flags.contains(&TestFlag::Module) + || metadata.esid.is_some() + || metadata.es6id.is_some() + { Self::ES6 } else { Self::ES5