Yes, it was there from the start. But bignums were not in the cards. JS had to “look like Java” only less so, be Java’s dumb kid brother or boy-hostage sidekick. Plus, I had to be done in ten days or something worse than JS would have happened.
So double by default, int under the hood, and bitwise ops are 32-bit int (uint if you use >>>). I blame Java.
我不知道为什么它不在ES2015的桌子上.对我来说,删除样板似乎是很多工作,但我猜测. Brendan Eich在Twitter上很活跃,你可能只是问他. 🙂