From bbb6608a76bbb577c92d55f695b235fb7504a004 Mon Sep 17 00:00:00 2001 From: jedel1043 Date: Thu, 23 Mar 2023 11:46:08 -0600 Subject: [PATCH] Bump Test262 and add new features --- boa_tester/src/edition.rs | 2 ++ boa_tester/src/read.rs | 2 +- test262 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/boa_tester/src/edition.rs b/boa_tester/src/edition.rs index 54f4aee7330..92f7527cbfb 100644 --- a/boa_tester/src/edition.rs +++ b/boa_tester/src/edition.rs @@ -122,6 +122,7 @@ static FEATURE_EDITION: phf::Map<&'static str, SpecEdition> = phf::phf_map! { "Array.prototype.at" => SpecEdition::ES13, "Array.prototype.flat" => SpecEdition::ES10, "Array.prototype.flatMap" => SpecEdition::ES10, + "Array.prototype.includes" => SpecEdition::ES7, "Array.prototype.values" => SpecEdition::ES6, "arrow-function" => SpecEdition::ES6, "async-iteration" => SpecEdition::ES9, @@ -156,6 +157,7 @@ static FEATURE_EDITION: phf::Map<&'static str, SpecEdition> = phf::phf_map! { "destructuring-binding" => SpecEdition::ES6, "dynamic-import" => SpecEdition::ES11, "error-cause" => SpecEdition::ES13, + "exponentiation" => SpecEdition::ES7, "export-star-as-namespace-from-module" => SpecEdition::ES11, "FinalizationRegistry" => SpecEdition::ES12, "for-in-order" => SpecEdition::ES11, diff --git a/boa_tester/src/read.rs b/boa_tester/src/read.rs index 9f8d6ba6cc1..2dc76452329 100644 --- a/boa_tester/src/read.rs +++ b/boa_tester/src/read.rs @@ -201,7 +201,7 @@ pub(super) fn read_test(path: &Path) -> Result { let metadata = read_metadata(path)?; - Test::new(name, path, metadata).wrap_err("failed to read test") + Test::new(name, path, metadata) } /// Reads the metadata from the input test code. diff --git a/test262 b/test262 index 9704d7f22f6..4a6439e4a7a 160000 --- a/test262 +++ b/test262 @@ -1 +1 @@ -Subproject commit 9704d7f22f6342d6c4753ab9a8d62d6725de8c4e +Subproject commit 4a6439e4a7aba77e305afc30977b02a34ad11b33