Re: Spec for [Global] does not seem to be quite web-compatible, and none of the UAs are really compatible with each other

On 12/26/13, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 12/26/13 12:12 AM, Garrett Smith wrote:
>> Simple assignment to onload = { foo: "bar"; }; should be a
>> SyntaxError.
>
> Whyever would it be a syntaxerror?  Are you saying that's what the spec
> says (it doesn't, afaict) or that's what the spec should say (it
> shouldn't, because I'm 99.9% sure that's not web-compatible).
>

You can't have a semicolon in an object literal like that. Look: {
foo: "bar"; };

[...]
-- 
Garrett
@xkit
ChordCycles.com
garretts.github.io

Received on Thursday, 26 December 2013 15:34:12 UTC