13b4cd4c1b
Add these methods that will explicilty coerce a value to an int, following the wrapping behavior in the ECMAScript specs (ToInt32, ToUInt32, ToUInt16). This also fixed an off-by-one error for negative numbers in the previous implementation. These will call `valueOf` if necessary. AVM code that requires an integer will probably use one of these (`coerce_to_i32` usually). |
||
---|---|---|
.. | ||
assets | ||
macros | ||
src | ||
tests | ||
Cargo.toml |