mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibJS: Do not fail a test if the flags list is empty
There are hundreds of test262 tests with the following metadata line: flags: [] Other engine runners are apparently able to ignore those lines, so we should as well.
This commit is contained in:
parent
b0ef956fe0
commit
e7db199249
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/e7db199249 Pull-request: https://github.com/SerenityOS/serenity/pull/19586
@ -349,11 +349,6 @@ static Result<TestMetadata, DeprecatedString> extract_metadata(StringView source
|
||||
if (line.starts_with("flags:"sv)) {
|
||||
auto flags = parse_list(line);
|
||||
|
||||
if (flags.is_empty()) {
|
||||
failed_message = DeprecatedString::formatted("Failed to find flags in '{}'", line);
|
||||
break;
|
||||
}
|
||||
|
||||
for (auto flag : flags) {
|
||||
if (flag == "raw"sv) {
|
||||
metadata.strict_mode = StrictMode::NoStrict;
|
||||
|
Loading…
Reference in New Issue
Block a user