Skip to content

Commit 8108694

Browse files
committed
Upgrade es-abstract
This includes a bug fix. With this version, now ToNumber throws a TypeError when a BigInt is given as input, in compliance with the spec.
1 parent 8a723e1 commit 8108694

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lib/ecmascript.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ const ObjectIs = Object.is;
1919
const ObjectEntries = Object.entries;
2020

2121
import bigInt from 'big-integer';
22-
import Call from 'es-abstract/2020/Call.js';
23-
import GetMethod from 'es-abstract/2020/GetMethod.js';
24-
import IsInteger from 'es-abstract/2020/IsInteger.js';
25-
import ToInteger from 'es-abstract/2020/ToInteger.js';
26-
import ToLength from 'es-abstract/2020/ToLength.js';
27-
import ToNumber from 'es-abstract/2020/ToNumber.js';
28-
import ToPrimitive from 'es-abstract/2020/ToPrimitive.js';
29-
import ToString from 'es-abstract/2020/ToString.js';
30-
import Type from 'es-abstract/2020/Type.js';
22+
import Call from 'es-abstract/2020/Call';
23+
import GetMethod from 'es-abstract/2020/GetMethod';
24+
import IsInteger from 'es-abstract/2020/IsInteger';
25+
import ToInteger from 'es-abstract/2020/ToInteger';
26+
import ToLength from 'es-abstract/2020/ToLength';
27+
import ToNumber from 'es-abstract/2020/ToNumber';
28+
import ToPrimitive from 'es-abstract/2020/ToPrimitive';
29+
import ToString from 'es-abstract/2020/ToString';
30+
import Type from 'es-abstract/2020/Type';
3131

3232
import { GetIntrinsic } from './intrinsicclass.mjs';
3333
import {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
],
5252
"dependencies": {
5353
"big-integer": "^1.6.48",
54-
"es-abstract": "^1.18.0-next.1"
54+
"es-abstract": "^1.18.3"
5555
},
5656
"devDependencies": {
5757
"@babel/core": "^7.11.6",

test/timezone.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ describe('TimeZone', () => {
197197
});
198198
describe('America/Los_Angeles', () => {
199199
const zone = new Temporal.TimeZone('America/Los_Angeles');
200-
const inst = Temporal.Instant.fromEpochSeconds(0n);
200+
const inst = new Temporal.Instant(0n);
201201
const dtm = new Temporal.PlainDateTime(1976, 11, 18, 15, 23, 30, 123, 456, 789);
202202
it(`${zone} has ID ${zone}`, () => equal(zone.id, `${zone}`));
203203
it(`${zone} has offset -08:00 in ns`, () => equal(zone.getOffsetNanosecondsFor(inst), -8 * 3600e9));

0 commit comments

Comments
 (0)