2010/5/20 Oliver Hunt <[email protected]>:
>> So for a non host object o,
>>  o.x = o.x - 1
>> should yield a number regardless of the details of any setter for x on
>> o, assuming o is not frozen and said setter returns normally.
>
> The assignment operator is defined in the language fairly clearly in a way 
> that means that the behaviour is unaffected by the type of object being 
> assigned to -- eg. being a host object or not is (mercifully) not relevant :D

Quite right.  Sorry for being confusing.
I ran into a corner case for IE6 and IE7 where postfix ++ does not
always yield a number, e.g. when applied to some host objects.  The
comment at line 80 of
http://code.google.com/p/google-caja/source/browse/trunk/tests/com/google/caja/browser-expectations.html
is my best recollection.




>
> --Oliver
>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to