1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-16 17:12:07 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins
Jesús (gsus) Lapastora 2086b8df9c LibJS/Date: Ensure YearFromTime(t) holds invariant after approximation
As of https://tc39.es/ecma262/#sec-yearfromtime, YearFromTime(t) should
return `y` such that `TimeFromYear(YearFromTime(t)) <= t`. This wasn't
held, since the approximation contained decimal digits that would nudge
the final value in the wrong direction.

Adapted from Kiesel:
6548a85743

Co-authored-by: Linus Groh <mail@linusgroh.de>
2023-10-23 09:26:55 -04:00
..
AggregateError
Array LibJS: Allow assignment expression in spreading property definition 2023-08-29 18:46:01 -04:00
ArrayBuffer
AsyncGenerator LibJS: Implement await properly for async functions 2023-08-10 05:12:07 +02:00
Atomics
BigInt
Boolean
DataView
Date LibJS/Date: Ensure YearFromTime(t) holds invariant after approximation 2023-10-23 09:26:55 -04:00
DisposableStack
Error LibJS: Add file & line number to bytecode VM stack traces :^) 2023-09-02 15:37:53 +02:00
FinalizationRegistry
Function
functions
Infinity
Intl LibLocale: Parse day-period hour cycle preferences 2023-10-05 17:01:02 +02:00
Iterator
JSON
Map
Math
NaN
Number LibJS: Support large number of decimals in Number.prototype.toFixed 2023-10-18 19:39:30 -04:00
Object
Promise
Proxy
Reflect
RegExp LibJS: Unescape incorrectly escaped code units in regex patterns 2023-09-16 15:21:09 +02:00
Set
ShadowRealm
SharedArrayBuffer
String LibJS: Behave like major engines when substituting missing capture group 2023-08-29 10:33:48 +02:00
SuppressedError
Symbol
Temporal LibJS: Disable Temporal custom time zone test 2023-10-18 16:29:27 -04:00
TypedArray
WeakMap
WeakRef
WeakSet