Clear bug in 15.10.6.2 step 17

2009-09-21 Thread Jeff Walden

17. Call the [[DefineOwnProperty]] internal method of A with arguments 
length, Property Descriptor
{[[Value]]: n + 1, [[Writable]: true, [[Enumerable]]: true, [[Configurable]]: 
true}, and true.

This is attempting to define an enumerable, configurable length property on an 
array, which will throw an exception trying to change the configurability of a 
non-configurable property.

Jeff
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss


RE: Clear bug in 15.10.6.2 step 17

2009-09-21 Thread Allen Wirfs-Brock
Yes, arguably that step isn't needed at all because step 20.b implicitly sets 
the length

-Original Message-
From: es-discuss-boun...@mozilla.org [mailto:es-discuss-
boun...@mozilla.org] On Behalf Of Jeff Walden
Sent: Monday, September 21, 2009 2:32 PM
To: es-discuss@mozilla.org
Subject: Clear bug in 15.10.6.2 step 17

17. Call the [[DefineOwnProperty]] internal method of A with arguments
length, Property Descriptor
{[[Value]]: n + 1, [[Writable]: true, [[Enumerable]]: true,
[[Configurable]]: true}, and true.

This is attempting to define an enumerable, configurable length property
on an array, which will throw an exception trying to change the
configurability of a non-configurable property.

Jeff
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss


another and possibly final ES5 errata

2009-09-21 Thread Allen Wirfs-Brock
As usual at 
http://wiki.ecmascript.org/doku.php?id=es3.1:es3.1_proposal_working_draft

Noon Tuesday US Pacific coast time is about the latest I can receive any new 
issues and get them resolved in time for the Wednesday's meeting where the ES5 
spec. will be declared finished.

Allen

___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss


RE: Use subset directive grammar

2009-09-21 Thread Allen Wirfs-Brock
Nice catch...it looks like I need to mention the semicolon (which may be 
supplied by automatic semicolon insertion).

The parentheses form is not intended to be a directive.

allen

-Original Message-
From: es-discuss-boun...@mozilla.org [mailto:es-discuss-
boun...@mozilla.org] On Behalf Of Mike Samuel
Sent: Monday, September 21, 2009 6:33 PM
To: es-discuss@mozilla.org
Subject: Use subset directive grammar

From section 14.1 of
http://wiki.ecmascript.org/lib/exe/fetch.php?id=es3.1%3Aes3.1_proposal_w
orking_draftcache=cachemedia=es3.1:es5-tc392008-040.pdf

A Directive Prologue is a sequence of zero or more
ExpressionStatement productions,
each of which having an Expression consists entirely of a
StringLiteral, that occur as the initial
SourceElement productions of a Program or FunctionBody.

What does consists entirely mean?

From the grammar in the appendix, to get from ExpressionStatement to
StringLiteral, I have to go through the following grammar chain:
ExpressionStatement - AssignmentExpression -
ConditionalExpression - (lots of operator precedence elided)
- LeftHandSideExpression - NewExpression - MemberExpression -
PrimaryExpression - Literal - StringLiteral

One way to define consists entirely might be: an A that consists
entirely of B if it matches A and B and all tokens were consumed by
matching B.
That definition is consistent with
  use strict
but not
  use strict;
since the ; is actually part of the ExpressionStatement production.

Is there a definition of consists entirely that matches
  use strict;
and
  use strict
but not
  (use strict);
?

Or can the last be part of a directive prologue?
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss


Re: another and possibly final ES5 errata

2009-09-21 Thread Garrett Smith
On Mon, Sep 21, 2009 at 6:05 PM, Allen Wirfs-Brock
allen.wirfs-br...@microsoft.com wrote:
 As usual at
 http://wiki.ecmascript.org/doku.php?id=es3.1:es3.1_proposal_working_draft



 Noon Tuesday US Pacific coast time is about the latest I can receive any new
 issues and get them resolved in time for the Wednesday’s meeting where the
 ES5 spec. will be declared finished.


https://mail.mozilla.org/pipermail/es-discuss/2009-September/009816.html

Function.prototype.toString

Current spec says it must return a string representation that has the
syntax of a FunctionDeclaration.

Problem is that implementations don't do that with anonymous functions.

Proposal to have it return a string representation that has the syntax
of a Function Definition (basically legalizes existing behavior in a
harmless way).

Garrett
___
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss