- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 14 May 2013 14:07:30 -0700
- To: Erik Arvidsson <arv@chromium.org>
- Cc: Dimitri Glazkov <dglazkov@google.com>, public-webapps <public-webapps@w3.org>, Scott Miles <sjmiles@google.com>, Rick Waldron <waldron.rick@gmail.com>, Allen Wirfs-Brock <allen@wirfs-brock.com>, Daniel Buchner <daniel@mozilla.com>, Elliott Sprehn <esprehn@gmail.com>
On Tue, May 14, 2013 at 1:58 PM, Erik Arvidsson <arv@chromium.org> wrote:
> On Tue, May 14, 2013 at 4:36 PM, Dimitri Glazkov <dglazkov@google.com>
> wrote:
>> This seems pretty nice. And it works with ES6 syntax:
>>
>> <element name="foo-bar">
>> ...
>> <script>
>> class FooBar {
>> ...
>> };
>> </script>
>> </element>
>
> Allen, correct me if I'm wrong but the completion value of ClassDeclaration
> is undefined (just like for VariableDeclaration).
Bleh, you're right. I didn't realize that there was a distinction
between expression and declaration here (for FunctionXXX too).
Maybe we can just get ES to change here? A FooDeclaration currently
has an undetectable return value, except through eval(), so hopefully
it's possible to just change what it returns.
~TJ
Received on Tuesday, 14 May 2013 21:08:18 UTC