The history about VariableStatement

2015-02-02 Thread Felix Kling
With ES6 having a production rule Declaration and ES5 having FunctionDeclaration, I'm curious why a variable declaration (as we say), officially VariableStatement, has not been originally defined as a declaration (back then). Would you consider it to be a declaration today if we didn't need

Re: Clarification regarding top level arrow functions and this/arguments

2015-02-02 Thread Felix Kling
Thank you everyone for your input and explanation, I really appreciate it! I just wanted to say that I understand that those notes are not normative, however, I also think they are tremendously helpful for understanding more complex parts of the spec. I think they can be a gateway until one

Re: The history about VariableStatement

2015-02-02 Thread Felix Kling
On 2015-02-02 09:46, Brendan Eich wrote: That was simply for consonance with the other productions reached directly from the Statement nonterminal. That is my actual question: Was there a specific reason to make it a /Statement/ as opposed to something similar like /FunctionDeclaration/,

Clarification regarding top level arrow functions and this/arguments

2015-01-21 Thread Felix Kling
[Section 14.2.17](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-arrow-function-definitions-runtime-semantics-evaluation) says Any reference to `arguments`, `super`, or `this` within an *ArrowFunction* are resolved to their bindings in the lexically enclosing function. However,

Re: Clarification regarding top level arrow functions and this/arguments

2015-01-21 Thread Felix Kling
On 2015-01-21 10:21, Brendan Eich wrote: Good catch, probably best to file a bug at this point: http://bugs.ecmascript.org/ Filed as https://bugs.ecmascript.org/show_bug.cgi?id=3587 Thanks! ___ es-discuss mailing list es-discuss@mozilla.org

Clarification regarding Completion Records

2016-09-22 Thread Felix Kling
Hi all! I need some clarification around completion records. Let me start with examples in the spec (7.0) and explain how I understand them (and what I don't understand): ``` 12.1.6 Runtime Semantics: Evaluation IdentifierReference: Identifier Return ?ResolveBinding(StringValue of

Re: Clarification regarding Completion Records

2016-09-23 Thread Felix Kling
ot return a completion record (i.e. some do and some don't). 2. Algorithms *always* return a completion record, but it's not always *explicitly* stated in the algorithm. Felix On 2016-09-23 03:32, Bergi wrote: Felix Kling wrote: I need some clarification around completion records. You'l