From e262e18e5f57d126eeb0dcd71d0a795a92b7d9cd Mon Sep 17 00:00:00 2001 From: Boshen Date: Tue, 14 Mar 2023 11:02:00 +0800 Subject: [PATCH] chore(coverage): remove tests for stage 3 proposal-json-modules --- tasks/coverage/src/test262.rs | 9 +++++++-- tasks/coverage/test262.snap | 8 +++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/tasks/coverage/src/test262.rs b/tasks/coverage/src/test262.rs index aa50b2071..cbd5540ad 100644 --- a/tasks/coverage/src/test262.rs +++ b/tasks/coverage/src/test262.rs @@ -161,8 +161,13 @@ impl Case for Test262Case { } fn skip_test_case(&self) -> bool { - std::iter::once("regexp-unicode-property-escapes".to_string().into_boxed_str()) - .any(|feature| self.meta.features.contains(&feature)) + [ + "regexp-unicode-property-escapes", + // Stage 3 `https://github.com/tc39/proposal-json-modules` + "json-modules", + ] + .iter() + .any(|feature| self.meta.features.iter().any(|f| **f == **feature)) } // Unless configured otherwise (via the noStrict, onlyStrict, module, or raw flags), diff --git a/tasks/coverage/test262.snap b/tasks/coverage/test262.snap index 073e721f1..f407b8e9f 100644 --- a/tasks/coverage/test262.snap +++ b/tasks/coverage/test262.snap @@ -1,9 +1,7 @@ Test262 Summary: -AST Parsed : 44015/44034 (99.96%) -Positive Passed: 44015/44034 (99.96%) -Negative Passed: 3908/3917 (99.77%) -Expect Syntax Error: "language/import/json-invalid.js" -Expect Syntax Error: "language/import/json-named-bindings.js" +AST Parsed : 44005/44024 (99.96%) +Positive Passed: 44005/44024 (99.96%) +Negative Passed: 3908/3915 (99.82%) Expect Syntax Error: "language/module-code/early-dup-export-as-star-as.js" Expect Syntax Error: "language/module-code/early-dup-export-dflt-id.js" Expect Syntax Error: "language/module-code/early-dup-export-id-as.js"