ruffle/core
Mike Welsh 13b4cd4c1b avm1: Add Value::coerce_to_i32/u32/u16 methods
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).
2020-01-20 13:28:27 -08:00
..
assets text: Add dummy implementation of device text 2019-10-07 23:23:45 -07:00
macros build(deps): bump syn from 1.0.13 to 1.0.14 2020-01-20 18:56:56 +00:00
src avm1: Add Value::coerce_to_i32/u32/u16 methods 2020-01-20 13:28:27 -08:00
tests tests: Use pretty_assertions for nice output on test fail 2020-01-17 13:54:39 -08:00
Cargo.toml tests: Use pretty_assertions for nice output on test fail 2020-01-17 13:54:39 -08:00