5bb8c1836f
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. |
||
---|---|---|
.. | ||
assets | ||
macros | ||
src | ||
tests | ||
Cargo.toml |