- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Thu, 26 Dec 2013 07:33:45 -0800
- To: Boris Zbarsky <bzbarsky@mit.edu>
- Cc: "public-script-coord@w3.org" <public-script-coord@w3.org>
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