Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
should global "let" be creating properties on window?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
al...@yahoo.com  
View profile  
 More options Nov 8 2011, 6:11 am
Newsgroups: mozilla.dev.tech.js-engine
From: <al...@yahoo.com>
Date: Tue, 8 Nov 2011 06:11:45 -0500
Local: Tues, Nov 8 2011 6:11 am
Subject: should global "let" be creating properties on window?
"In programs and classes let does not create properties on the global object
like var does; instead, it creates properties in an implicit block created
for the evaluation of statements in those contexts."
https://developer.mozilla.org/en/New_in_JavaScript_1.7

but in Fx8 the following does create a "window.a"

<script type="application/javascript;version=1.8">
let a = 1;
</scipt>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Honnen  
View profile  
 More options Nov 8 2011, 12:11 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Martin Honnen <mahotr...@yahoo.de>
Date: Tue, 08 Nov 2011 18:11:04 +0100
Local: Tues, Nov 8 2011 12:11 pm
Subject: Re: should global "let" be creating properties on window?

al...@yahoo.com wrote:
> "In programs and classes let does not create properties on the global object
> like var does; instead, it creates properties in an implicit block created
> for the evaluation of statements in those contexts."
> https://developer.mozilla.org/en/New_in_JavaScript_1.7

> but in Fx8 the following does create a "window.a"

> <script type="application/javascript;version=1.8">
> let a = 1;
> </scipt>

It might be that the documentation is wrong, at least I tried Rhino and
it shows the same behaviour:

Rhino 1.7 release 3 2011 05 09
js> 'x' in this
false
js> let x = 1;
js> 'x' in this
true


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
al...@yahoo.com  
View profile  
 More options Nov 8 2011, 4:15 pm
Newsgroups: mozilla.dev.tech.js-engine
From: <al...@yahoo.com>
Date: Tue, 8 Nov 2011 16:15:39 -0500
Local: Tues, Nov 8 2011 4:15 pm
Subject: Re: should global "let" be creating properties on window?
"Martin Honnen" <mahotr...@yahoo.de> wrote in message

news:wPudnf5Igos1_yTTnZ2dnUVZ_oqdnZ2d@mozilla.org...

> al...@yahoo.com wrote:
>> "In programs and classes let does not create properties on the global
>> object
>> like var does; instead, it creates properties in an implicit block
>> created
>> for the evaluation of statements in those contexts."
>> https://developer.mozilla.org/en/New_in_JavaScript_1.7

>> but in Fx8 the following does create a "window.a"

>> <script type="application/javascript;version=1.8">
>> let a = 1;
>> </scipt>

> It might be that the documentation is wrong

Is there a spec?

Who should be asked what's expected here?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wes Garland  
View profile  
 More options Nov 8 2011, 6:16 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Wes Garland <w...@page.ca>
Date: Tue, 8 Nov 2011 18:16:01 -0500
Local: Tues, Nov 8 2011 6:16 pm
Subject: Re: should global "let" be creating properties on window?
There is a spec, upcoming, in ES.next (ES6?) -- but the SpiderMonkey
implementation pre-dates this. I suspect it will be brought into alignment
in the not-too-distant future.

As for not creating props on global - avoiding that is uglier than the
alternative IMO.

Wes

On 8 November 2011 16:15, <al...@yahoo.com> wrote:

--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Honnen  
View profile  
 More options Nov 9 2011, 5:56 am
Newsgroups: mozilla.dev.tech.js-engine
From: Martin Honnen <mahotr...@yahoo.de>
Date: Wed, 09 Nov 2011 11:56:47 +0100
Local: Wed, Nov 9 2011 5:56 am
Subject: Re: should global "let" be creating properties on window?

I have not been following this group respectively mailing list closely.
There was a time when developers of Spidermonkey read here and reacted
so you might want to wait some more time whether you get some more
qualified response.
As an alternative, https://developer.mozilla.org/en/SpiderMonkey
mentions an IRC channel irc://irc.mozilla.org/jsapi where you could try
to get a faster response.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sheppy  
View profile  
 More options Nov 9 2011, 2:02 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Sheppy <the.she...@gmail.com>
Date: Wed, 9 Nov 2011 11:02:50 -0800 (PST)
Local: Wed, Nov 9 2011 2:02 pm
Subject: Re: should global "let" be creating properties on window?
Can anyone clarify for me whether or not the docs need fixing, or
touch them up if they do? Thanks!

Eric Shepherd
Developer Documentation Lead
Mozilla
http://www.bitstampede.com/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
al...@yahoo.com  
View profile  
 More options Nov 10 2011, 9:05 am
Newsgroups: mozilla.dev.tech.js-engine
From: <al...@yahoo.com>
Date: Thu, 10 Nov 2011 09:05:57 -0500
Local: Thurs, Nov 10 2011 9:05 am
Subject: Re: should global "let" be creating properties on window?
<al...@yahoo.com> wrote in message

news:hqqdnewdw9e6kyTTnZ2dnUVZ_gOdnZ2d@mozilla.org...

> "In programs and classes let does not create properties on the global
> object like var does; instead, it creates properties in an implicit block
> created for the evaluation of statements in those contexts."
> https://developer.mozilla.org/en/New_in_JavaScript_1.7

> but in Fx8 the following does create a "window.a"

> <script type="application/javascript;version=1.8">
> let a = 1;
> </scipt>

https://bugzilla.mozilla.org/show_bug.cgi?id=700859

I tried bugzilla, but no-one has responded there either.  What does it take
to get a simple question answered?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Panos Astithas  
View profile  
 More options Nov 10 2011, 10:40 am
Newsgroups: mozilla.dev.tech.js-engine
From: Panos Astithas <p...@mozilla.com>
Date: Thu, 10 Nov 2011 17:40:30 +0200
Local: Thurs, Nov 10 2011 10:40 am
Subject: Re: should global "let" be creating properties on window?

Patience? Especially when the people with detailed knowledge to answer such
a question are in short supply :-)
Did you try #jslang or #jsapi?

Panos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Herman  
View profile  
 More options Nov 10 2011, 4:53 pm
Newsgroups: mozilla.dev.tech.js-engine
From: Dave Herman <david.her...@gmail.com>
Date: Thu, 10 Nov 2011 13:53:11 -0800 (PST)
Local: Thurs, Nov 10 2011 4:53 pm
Subject: Re: should global "let" be creating properties on window?
On Nov 8, 4:11 am, <al...@yahoo.com> wrote:

> "In programs and classes let does not create properties on the global object
> like var does; instead, it creates properties in an implicit block created
> for the evaluation of statements in those contexts."https://developer.mozilla.org/en/New_in_JavaScript_1.7

> but in Fx8 the following does create a "window.a"

> <script type="application/javascript;version=1.8">
> let a = 1;
> </scipt>

Strange. The docs are totally wrong here. I've fixed them -- thanks
for bringing it up!

Dave


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »