- From: Daniel Ehrenberg <notifications@github.com>
- Date: Thu, 22 Feb 2018 15:36:44 +0000 (UTC)
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 22 February 2018 15:37:09 UTC
This patch adds a bigint type to WebIDL with the following properties:
- bigint corresponds directly to BigInt
- The conversion from JS is based on ToBigInt, namely it throws on Number.
- bigint is not grouped as a "numeric" type, as this category is often
used to refer to types which have a JavaScript representation of Number.
- bigint is included in the overloading resolution algorithm, and it's
possible to overload a function for BigInt and numeric arguments.
Although it may be on the early side for such a change, the lack of
BigInt WebIDL integration is already coming up in some designs for integrating
BigInt with the Web Platform, such as https://github.com/w3c/IndexedDB/pull/231
You can view, comment on, or merge this pull request online at:
https://github.com/heycam/webidl/pull/525
-- Commit Summary --
* Add bigint type
-- File Changes --
M index.bs (88)
-- Patch Links --
https://github.com/heycam/webidl/pull/525.patch
https://github.com/heycam/webidl/pull/525.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/525
Received on Thursday, 22 February 2018 15:37:09 UTC