eval on non-strings

Andreas Rossberg rossberg at google.com
Tue Feb 28 02:53:59 PST 2012


On 28 February 2012 11:04, Brendan Eich <brendan at mozilla.org> wrote:
> Fail-soft in JS1 was an artifact of lack of try-catch combined with too much
> rushed Unix philosophy. In cases such as delete you could get a status
> result (boolean telling whether the delete failed hard if false, else either
> succeeded or found no "own" property if true). In other cases of course an
> implicit coercion was done (*sigh*).
>
> All water under the bridge but I agree we should not add more. Where do you
> see new fail-soft (or worse, fail-soft with ambiguity) being added?

Mainly destructuring, especially the implicit ToObject conversion of
the RHS that we have discussed a couple of months ago.

/Andreas


More information about the es-discuss mailing list