-
Why is the type of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm not entirely sure of what the original plan was, but generally speaking this is correct. I'm not entirely sure if this is a limitation by the spec (because the spec uses the word "Integer"), or if this is a limitation by JS being used to implement the spec in browsers. In any case, as long as browsers take a |
Beta Was this translation helpful? Give feedback.
I'm not entirely sure of what the original plan was, but generally speaking this is correct.
JS represents all
Number
s asf64
, even if the IDL specifies it asunsigned long long
it takes aNumber
in JS and not aBigInt
(the only true integer type I'm aware of in JS).I'm not entirely sure if this is a limitation by the spec (because the spec uses the word "Integer"), or if this is a limitation by JS being used to implement the spec in browsers.
In any case, as long as browsers take a
Number
forunsigned long long
there isn't much we can do here.