Browse Source

Fix ES5 selector (#2924)

* Check if es6id is found

* Check for both esid and es6id
pull/2930/head
Veera 2 years ago committed by GitHub
parent
commit
facbacc27e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      boa_tester/src/edition.rs

5
boa_tester/src/edition.rs

@ -341,7 +341,10 @@ impl SpecEdition {
pub(crate) fn from_test_metadata(metadata: &MetaData) -> Result<Self, Vec<&str>> {
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

Loading…
Cancel
Save