mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibJS: Reflect recent editorial changes in the Temporal proposal
See: -2148441
-08c04cc
-b77da58
This commit is contained in:
parent
5c77885873
commit
d159938acc
5 changed files with 16 additions and 12 deletions
|
@ -96,6 +96,7 @@ Instant* to_temporal_instant(GlobalObject& global_object, Value item)
|
|||
if (vm.exception())
|
||||
return {};
|
||||
|
||||
// 4. Return ! CreateTemporalInstant(ℤ(epochNanoseconds)).
|
||||
return create_temporal_instant(global_object, *epoch_nanoseconds);
|
||||
}
|
||||
|
||||
|
@ -186,7 +187,10 @@ BigInt* round_temporal_instant(GlobalObject& global_object, BigInt const& nanose
|
|||
}
|
||||
// 7. Else,
|
||||
else {
|
||||
// a. Let incrementNs be increment.
|
||||
// a. Assert: unit is "nanosecond".
|
||||
VERIFY(unit == "nanosecond");
|
||||
|
||||
// b. Let incrementNs be increment.
|
||||
increment_nanoseconds = increment;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue