Assigning to ReadOnly properties

YR Chen maian330 at gmail.com
Mon Nov 12 13:43:47 PST 2007


On Nov 12, 2007 11:40 AM, Mark Miller <erights at gmail.com> wrote:

> On Nov 12, 2007 9:05 AM, Brendan Eich <brendan at mozilla.org> wrote:
> > [..], but the idea would
> > be to enable throwing of a ReadOnlyError on assignment to a ReadOnly
> > property. Comments?
>
> Hi Brendan,
>
> I'm glad to hear that this possibility is in scope. In the Caja spec, we
> write:
>
>  \item[Silent errors.] In JavaScript, various operations, such as setting
> a
>  ReadOnly property, fail silently rather than throwing an error. Program
>  logic then proceeds along normal control flow paths premised on the
>  assumption that these operations succeeded, leading to inconsistency.


Out of curiosity, what other JS operations fail silently?

-Yuh-Ruey Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.mozilla.org/pipermail/es-discuss/attachments/20071112/6c76658d/attachment-0002.html 


More information about the Es4-discuss mailing list