ruffle/core
David Wendt 5bb8c1836f Replace `as_bool` with `coerce_to_bool`.
Functions that need to assert Boolness without coercion should either:

1. Ensure their function declaration requires a Boolean. (We don't enforce type errors on ES4 typehints yet, but we should.)
2. Check the value type themselves and raise their own errors if necessary.

As it stands the only users of `as_bool` either needed to check the type themselves or use `coerce_to_bool`. Notably, `setPropertyIsEnumerable` doesn't appear to coerce *or* throw an error: it instead fails silently if you hand it a non-`Boolean` value.
2020-08-10 16:38:04 -07: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.37 to 1.0.38 2020-08-05 15:59:02 -07:00
src Replace `as_bool` with `coerce_to_bool`. 2020-08-10 16:38:04 -07:00
tests avm1: Copy broadcast functions for MovieClipLoader 2020-08-04 07:02:14 -07:00
Cargo.toml build(deps): bump enumset from 1.0.0 to 1.0.1 2020-08-09 13:15:38 -07:00