-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Questions #15
Comments
a NoLineTerminator is certainly required to avoid breaking a matching LHSExpressoin + a Block |
Right, this came up while running this by @waldemarhorwat. In the current formulation, as @leobalter said, these two things would mean different things.
Are two statements, one with On (2), the same thinking applies:
It means a method call Does that make sense? |
it's not an object literal, it's a Block. ASI needs to prevail as both are valid code already.
The completion value should be 42 (getting |
Ah, fair, yes, a block. Still, point being that this is NOT equivalent to
a(function {}).
Makes sense?
…On Thu, Nov 9, 2017 at 11:35 AM, Leo Balter ***@***.***> wrote:
Are two statements, one with a as an identifier and the second as an
object literal {}.
it's not an object literal, it's a Block
<https://tc39.github.io/ecma262/#prod-Block>. ASI needs to prevail as
both are valid code already.
var a = 42;
a
{}
The completion value should be 42 (getting a)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAqV6phmD7pt-Q837RDvWRp7Jc8o7i0Rks5s01PsgaJpZM4QYYaL>
.
--
f u cn rd ths u cn b a gd prgmr !
|
Mostly, but @leobalter already pointed out the important corrections.
That's what I was hoping to verify. This issue can be closed once a valid grammar exists which satisfies the requirement, ideally @leobalter's recommendation. |
@leobalter 's recommendation works for me. I'm going to keep this open just to make sure we don't forget this when writing a more specific spec (the text right now is very informal). good catch, thanks! |
The text was updated successfully, but these errors were encountered: