On Wed, Mar 23, 2011 at 1:11 PM, felix <[email protected]> wrote:

> <script>x = 3;</script>
> throws a ReferenceError "x is not defined".  is this correct behavior?
>

Yes it is.  Caja takes as input the strict mode subset of ES5 which throws
on assignment to undeclared variables.  I thought there was an option to
reduce this to a warning in ES53Rewriter but I cannot find it right now.

Reply via email to