LibJS: Migrate ToIntegerIfIntegral to ECMA-262

This is an editorial change in the Temporal proposal. See:
5f76109
This commit is contained in:
Timothy Flynn 2025-02-28 12:22:27 -05:00 committed by Andreas Kling
commit aa737bb654
Notes: github-actions[bot] 2025-03-01 13:50:37 +00:00
3 changed files with 16 additions and 16 deletions

View file

@ -209,7 +209,7 @@ ThrowCompletionOr<DurationRecord> to_duration_record(VM& vm, Value input)
auto value = TRY(input_object.get(name));
if (!value.is_undefined()) {
value_slot = TRY(Temporal::to_integer_if_integral(vm, value, ErrorType::TemporalInvalidDurationPropertyValueNonIntegral, name, value));
value_slot = TRY(to_integer_if_integral(vm, value, ErrorType::TemporalInvalidDurationPropertyValueNonIntegral, name, value));
any_defined = true;
}