Skip to content

Commit

Permalink
fixup! spec: Date.from and parsing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzokuken committed Nov 2, 2020
1 parent aefe4bc commit fc5fdf2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions polyfill/lib/ecmascript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -935,12 +935,12 @@ export const ES = ObjectAssign({}, ES2020, {

const TemporalTime = GetIntrinsic('%Temporal.Time%');
const time = calendar.timeFromFields(fields, { overflow }, TemporalTime);
hour = GetSlot(time, ISO_HOUR);
minute = GetSlot(time, ISO_MINUTE);
second = GetSlot(time, ISO_SECOND);
millisecond = GetSlot(time, ISO_MILLISECOND);
microsecond = GetSlot(time, ISO_MICROSECOND);
nanosecond = GetSlot(time, ISO_NANOSECOND);
const hour = GetSlot(time, ISO_HOUR);
const minute = GetSlot(time, ISO_MINUTE);
const second = GetSlot(time, ISO_SECOND);
const millisecond = GetSlot(time, ISO_MILLISECOND);
const microsecond = GetSlot(time, ISO_MICROSECOND);
const nanosecond = GetSlot(time, ISO_NANOSECOND);

return { year, month, day, hour, minute, second, millisecond, microsecond, nanosecond };
},
Expand Down Expand Up @@ -1189,12 +1189,12 @@ export const ES = ObjectAssign({}, ES2020, {
GetSlot(dt, ISO_YEAR),
GetSlot(dt, ISO_MONTH),
GetSlot(dt, ISO_DAY),
GetSlot(dt, HOUR),
GetSlot(dt, MINUTE),
GetSlot(dt, SECOND),
GetSlot(dt, MILLISECOND),
GetSlot(dt, MICROSECOND),
GetSlot(dt, NANOSECOND)
GetSlot(dt, ISO_HOUR),
GetSlot(dt, ISO_MINUTE),
GetSlot(dt, ISO_SECOND),
GetSlot(dt, ISO_MILLISECOND),
GetSlot(dt, ISO_MICROSECOND),
GetSlot(dt, ISO_NANOSECOND)
);
if (epochNs === null) throw new RangeError('ZonedDateTime outside of supported range');
const TemporalInstant = GetIntrinsic('%Temporal.Instant%');
Expand Down

0 comments on commit fc5fdf2

Please sign in to comment.