Skip to content

Commit

Permalink
Rename TemporalAbsoluteFromString to ParseTemporalAbsolute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Apr 23, 2020
1 parent dc5090b commit 7951727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion polyfill/lib/absolute.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Absolute {
if (ES.IsTemporalAbsolute(item)) {
ns = GetSlot(item, EPOCHNANOSECONDS);
} else {
ns = ES.TemporalAbsoluteFromString(ES.ToString(item));
ns = ES.ParseTemporalAbsolute(ES.ToString(item));
}
const result = new this(bigIntIfAvailable(ns));
if (!ES.IsTemporalAbsolute(result)) throw new TypeError('invalid result');
Expand Down
4 changes: 2 additions & 2 deletions polyfill/lib/ecmascript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const ES = ObjectAssign({}, ES2019, {
const { zone, ianaName, offset } = ES.ParseTemporalTimeZoneString(stringIdent);
const result = ES.GetCanonicalTimeZoneIdentifier(zone);
if (offset && ianaName) {
const ns = ES.TemporalAbsoluteFromString(stringIdent);
const ns = ES.ParseTemporalAbsolute(stringIdent);
if (ES.GetTimeZoneOffsetString(ns, result) !== offset) {
throw new RangeError(`invalid offset ${offset}[${ianaName}]`);
}
Expand Down Expand Up @@ -180,7 +180,7 @@ export const ES = ObjectAssign({}, ES2019, {
const nanoseconds = ES.ToInteger(match[9]);
return { years, months, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds };
},
TemporalAbsoluteFromString: (isoString) => {
ParseTemporalAbsolute: (isoString) => {
const {
year,
month,
Expand Down

0 comments on commit 7951727

Please sign in to comment.