Assigning to ReadOnly properties

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

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

> On Nov 12, 2007 9:05 AM, Brendan Eich <brendan at> 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...

More information about the Es4-discuss mailing list