1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

LibJS: Rename MatchBehavior members back to their old names

I changed this in 6ef1a27 to "match the spec", but the spec calls it
`match exactly` and `match minutes` - so what we had before was correct
and the change made no sense whatsoever.
This commit is contained in:
Linus Groh 2021-11-12 23:37:20 +00:00
parent 778268b1a5
commit 0d9defdad8
3 changed files with 7 additions and 7 deletions

View file

@ -535,7 +535,7 @@ ThrowCompletionOr<Value> to_relative_temporal_object(GlobalObject& global_object
auto offset_behavior = OffsetBehavior::Option;
// 5. Let matchBehaviour be match exactly.
auto match_behavior = MatchBehavior::Exactly;
auto match_behavior = MatchBehavior::MatchExactly;
ISODateTime result;
Value offset_string;
@ -622,7 +622,7 @@ ThrowCompletionOr<Value> to_relative_temporal_object(GlobalObject& global_object
}
// h. Set matchBehaviour to match minutes.
match_behavior = MatchBehavior::Minutes;
match_behavior = MatchBehavior::MatchMinutes;
// See NOTE above about why this is done.
result = move(parsed_result.date_time);