# Intent to ship: BigInt

This feature adds support for arbitrary-precision integers to the
JavaScript language.  BigInt values are a new kind of primitive.  The
usual arithmetic operations are extended to work on BigInt values.  As
specified, arithmetic operations between BigInt and Number values throw
a TypeError, in order to prevent bugs and simplify implementation.

## Tracking bugs

Implementation: https://bugzilla.mozilla.org/show_bug.cgi?id=1366287
Shipping: https://bugzilla.mozilla.org/show_bug.cgi?id=1527902

## Standard

https://tc39.github.io/proposal-bigint/

The standard is "stage 3" in TC39, the ECMAScript standardization
committee: https://github.com/tc39/proposals#stage-3.

## Platform coverage

All

## Estimated or target release

67 (soft freeze 11 march, train leaving 18 march)

## DevTools bug

https://bugzilla.mozilla.org/show_bug.cgi?id=1527912

## MDN

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

Ongoing work by the fine MDN editors to flesh this out, notably
regarding increment and decrement on bigint values and the various
TypedArray integrations.

## Support in other browser / JS engines

Chrome / V8 implements the draft spec.

Safari / JavaScriptCore has a partial implementation that is being
completed on an ongoing basis by Caio Lima.

## test262 coverage

Comprehensive.  There are 1164 test262 files, which can be found as:

  find /js/src/tests/test262/ -ipath '*bigint*' -type f

## Where to send your bugs

Robin Templeton (:terpri) and Andy Wingo (:wingo).  Bring it on! :)
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to