Skip to content

Commit

Permalink
Fix ES5 selector (#2924)
Browse files Browse the repository at this point in the history
* Check if es6id is found

* Check for both esid and es6id
  • Loading branch information
veera-sivarajan authored May 11, 2023
1 parent f57872c commit facbacc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boa_tester/src/edition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit facbacc

Please sign in to comment.