Reputation: 12210
It seems that even the newest Ecmascript 8 has no support for 64bit integers.
Currently we have to use libraries, like Long or UInt64 or Closure Library.
Is it technically possible to add native support for 64bit integers in Javascript?
Upvotes: 7
Views: 2241
Reputation: 5692
Yes, it is. There's a stage 3 proposal for arbitrary-bigints (including enough to allow implementations to specialize fixed 64-bit use), so it's literally just waiting for implementations and tests at this point. Therefore, one can conclude that it's technically possible.
Upvotes: 4