Linus Groh
93b4c3bb82
LibJS: Infer file extensions when resolving module paths
...
This allows `import "./foo"` to succeed, even if the file is actually
called `foo.js`. IDEs commonly exclude file extensions in auto-imports.
Closes #14364 .
2022-06-26 22:03:53 +01:00
Linus Groh
2b3dd87296
LibJS: Rename filepath to filename in module related code
...
This is already the parameter name of Core::File::open() and
VM::get_stored_module() - both of which this is passed to - as well as
the member name of the Module class.
2022-06-26 22:03:53 +01:00
Linus Groh
893978ea89
LibJS: Replace enumeration macro in typed_array_species_create()
...
Use the newly added TypedArrayBase::intrinsic_constructor() instead to
get the required constructor from the global object.
Also add spec comments while we're here.
2022-06-26 21:57:39 +01:00
Linus Groh
3885fa1d10
LibJS: Store fn pointer to its intrinsic constructor on TypedArrayBase
...
This represents "the intrinsic object listed in column one of Table X"
in the spec.
2022-06-26 21:57:39 +01:00
Linus Groh
ee0d5d6649
LibJS: Refactor common option reading into the GetDifferenceSettings AO
...
This is an editorial change in the Temporal spec.
See: 78abbb8
2022-06-24 22:12:03 +01:00
Linus Groh
05c5263ecc
LibJS: Mark CreateTemporalDate in AddDateTime as infallible
...
This is an editorial change in the Temporal spec.
See: cd356a6
2022-06-24 22:12:03 +01:00
Linus Groh
80663d9d3b
LibJS: Mark CreateTemporalDate in ToRelativeTemporalObject as fallible
...
This is an editorial change in the Temporal spec.
See: 09e9f9c
2022-06-24 22:12:03 +01:00
Linus Groh
3679f671b9
LibJS: Mark some calls of CreateTemporalDate as infallible
...
This is an editorial change in the Temporal spec.
See: 30344e8
2022-06-24 22:12:03 +01:00
Linus Groh
26990ab41c
LibJS: Mark PlainTime.prototype.round's CreateTemporalTime infallible
...
This is an editorial change in the Temporal spec.
See: 6b57938
2022-06-24 22:12:03 +01:00
Linus Groh
709e16004d
LibJS: Assert RoundISODateTime is called with values within the limits
...
This is an editorial change in the Temporal spec.
See: eaa7042
2022-06-24 22:12:03 +01:00
Linus Groh
f54ed48ef1
LibJS: Assert AddTime is called with a valid time
...
This is an editorial change in the Temporal spec.
See: 0ead23c
2022-06-24 22:12:03 +01:00
Linus Groh
416f94eb3b
LibJS: Add Number conversion in PrepareTemporalFields
...
This is an editorial change in the Temporal spec.
See: 687d06c
2022-06-24 22:12:03 +01:00
Linus Groh
78bfeca643
LibJS: Add Number conversion in ZonedDateTime.prototype.getISOFields()
...
This is an editorial change in the Temporal spec.
See: bc59d8d
2022-06-24 22:12:03 +01:00
Linus Groh
ea023ac62c
LibJS: Add Number conversion in AddDu/ToOrSubtractDu/FromPlainYearMonth
...
This is an editorial change in the Temporal spec.
See: 823300c
2022-06-24 22:12:03 +01:00
Linus Groh
98dc964649
LibJS: Add conversion to mathematical number in ToTemporalTimeRecord
...
This is an editorial change in the Temporal spec.
See: 9f37d10
2022-06-24 22:12:03 +01:00
Linus Groh
7138f10c30
LibJS: Check for invalid epoch ns in DisambiguatePossibleInstants
...
This is a normative change in the Temporal spec.
See: c12d20d
2022-06-24 22:12:03 +01:00
Linus Groh
7b5a7e7759
LibJS: Check for invalid epoch nanoseconds in NanosecondsToDays
...
This is a normative change in the Temporal spec.
See: f1f016e
2022-06-24 22:12:03 +01:00
Linus Groh
ddea6d451b
LibJS: Check for invalid epoch nanoseconds in InterpretISODateTimeOffset
...
This is a normative change in the Temporal spec.
See: cdfe4a5
2022-06-24 22:12:03 +01:00
Linus Groh
d10e0f0e3e
LibJS: Check for invalid epoch nanoseconds in getPossibleInstantsFor()
...
This is a normative change in the Temporal spec.
See: 439e6af
2022-06-24 22:12:03 +01:00
Linus Groh
61bdbe712e
LibJS: Remove duplicate steps for offset-only time zones
...
This is an editorial change in the Temporal spec.
See: 7813599
2022-06-24 22:12:03 +01:00
Linus Groh
34f02bed17
LibJS: Remove check for Instant range before subtracting UTC offset
...
This is a normative change in the Temporal spec.
See: 5e2fecb
2022-06-24 22:12:03 +01:00
Linus Groh
9c31fee4b5
LibJS: Remove unnecessary modulo operation in GetISOPartsFromEpoch
...
This is an editorial change in the Temporal spec.
See: fc3f80d
2022-06-24 22:12:03 +01:00
Linus Groh
0ff6260afb
LibJS: Use ToTemporalDuration in AddDu/ToOrSubtractDu/FromPlainYearMonth
...
This is an editorial change in the Temporal spec.
See: a454134
2022-06-24 22:12:03 +01:00
Idan Horowitz
a79796ea4a
LibJS: Implement stage 3 proposal FinalizationRegistry changes
...
Specifically the 'Symbol as WeakMap Keys Proposal'.
2022-06-23 10:57:52 +03:00
Idan Horowitz
53ed8decaf
LibJS: Implement WeakRef changes from 'Symbol as WeakMap Keys Proposal'
2022-06-23 10:57:52 +03:00
Idan Horowitz
dbd0110721
LibJS: Implement WeakSet changes from 'Symbol as WeakMap Keys Proposal'
2022-06-23 10:57:52 +03:00
Idan Horowitz
a80d3fdf49
LibJS: Implement WeakMap changes from 'Symbol as WeakMap Keys Proposal'
2022-06-23 10:57:52 +03:00
Idan Horowitz
22a78e8a2c
LibJS: Implement the CanBeHeldWeakly abstract operation
...
This AO is required for implementing the rest of the stage 3 'Symbol as
WeakMap Keys Proposal'.
2022-06-23 10:57:52 +03:00
Linus Groh
5b1e2cc65c
LibJS: Update AdjustRoundedDurationDays function signature comment
...
I missed this in a25c5d8
. Thanks to Idan for noticing :^)
2022-06-18 13:58:08 +01:00
Linus Groh
7a8e6cf6c6
LibJS: Move MergeLists into non-Temporal ECMA-262 amendments
...
This is an editorial change in the Temporal spec.
See: 4ce3db1
2022-06-18 13:54:46 +01:00
Linus Groh
0c3d2b656e
LibJS: Rename CalendarMergeFieldNames to MergeLists
...
This is an editorial change in the Temporal spec.
See: bebf467
2022-06-18 13:54:46 +01:00
Linus Groh
e685896403
LibJS: Check value is an Object before checking for internal slots
...
This is an editorial change in the Temporal spec.
See: d96e662
2022-06-18 13:54:46 +01:00
Linus Groh
a25c5d8fe8
LibJS: Make relativeTo required for AdjustRoundedDurationDays
...
This is an editorial change in the Temporal spec.
See: 48e0a15
2022-06-18 13:54:46 +01:00
Linus Groh
2c647da0b5
LibJS: Mark AddInstant in AddZonedDateTime as fallible
...
This is an editorial change in the Temporal spec.
See: 8bc0f98
2022-06-15 17:49:20 +01:00
Linus Groh
b2965cf204
LibJS: Fix Instant rounding modes
...
This is a normative change in the Temporal spec.
See: 0993b75
2022-06-15 17:49:20 +01:00
Linus Groh
1755d051fd
LibJS: Mark two calls as infallible in DifferenceTemporalPlainTime
...
This is an editorial change in the Temporal spec.
See: 0e4966a
2022-06-15 17:49:20 +01:00
Linus Groh
36ef604905
LibJS: Assume options is an object in the DifferenceZonedDateTime AO
...
This is an editorial change in the Temporal spec.
See: a6662f1
2022-06-15 17:49:20 +01:00
Linus Groh
52a4ee563d
LibJS: Assume options is an object in the MergeLargestUnitOption AO
...
This is an editorial change in the Temporal spec.
See: 20a04ac
2022-06-15 17:49:20 +01:00
Linus Groh
569c2dc1d0
LibJS: Adjust order of operations in ISO{Date,MonthDay}FromFields
...
This is a normative change in the Temporal spec.
See: 7dd90dc
2022-06-15 17:49:20 +01:00
Linus Groh
3bc54ac75a
LibJS: Mark a call of CreateDurationRecord as fallible
...
This is an editorial change in the Temporal spec.
See: 462f027
2022-06-15 17:49:20 +01:00
Linus Groh
81b9a2e4a1
LibJS: Mark a call of CreateDateDurationRecord as fallible
...
This is an editorial change in the Temporal spec.
See: 5411f62
2022-06-15 17:49:20 +01:00
Linus Groh
8be4cc9653
LibJS: Make options mandatory in Difference{Zoned,ISO}DateTime
...
This is an editorial change in the Temporal spec.
See: d4c4a16
2022-06-15 17:49:20 +01:00
Linus Groh
eaf6f20ed1
LibJS: Move assertion step around in Calendar.prototype.mergeFields
...
This is an editorial change in the Temporal spec.
See: f790821
2022-06-15 17:49:20 +01:00
Linus Groh
c0986be2c1
LibJS: Use consistent alias names for object-copy steps
...
This is an editorial change in the Temporal spec.
See: 6669bad
2022-06-15 17:49:20 +01:00
Linus Groh
e68173b656
LibJS: Update AvailableCalendars AO to reflect spec changes
...
These are editorial and normative changes in the Temporal spec.
See:
- 2c977fc
- 3af75ec
- 75ea812
- e7be49b
- 883e00a
- 5b9d76a
2022-06-15 17:49:20 +01:00
Linus Groh
3025f77991
LibJS: Add an explicit operation for merging calendar field names
...
This is an editorial change in the Temporal spec.
See: 2bd7977
2022-06-15 17:49:20 +01:00
Linus Groh
ee80164ac1
LibJS: Remove unnecessary variable initialization in DifferenceISODate
...
This is an editorial change in the Temporal spec.
See: ca1abdc
2022-06-15 17:49:20 +01:00
Linus Groh
fafc9b07c4
LibJS: Mark AO calls creating a copy of built-in objects as infallible
...
This is an editorial change in the Temporal spec.
See: 536f067
2022-06-15 17:49:20 +01:00
Linus Groh
be2c86002a
LibJS: Handle absent options in DifferenceZonedDateTime
...
This is an editorial change in the Temporal spec.
See: edc223c
2022-06-15 17:49:20 +01:00
Linus Groh
5eb48f6f3a
LibJS: Remove constant arguments from CalculateOffsetShift
...
This is an editorial change in the Temporal spec.
See: 0bc5f9d
2022-06-15 17:49:20 +01:00