On Wed, 26 May 2010 at 09:18:14, in comp.lang.javascript, Ry Nohryb
wrote:
>On May 26, 5:24*pm, John G Harris <j...@nospam.demon.co.uk> wrote:
>> Gawd, you can't even copy-and-paste accurately! It's Statement,
>> singular.
>
>Either that or that you can't read, Johnny: ES3 specs, page 162: "A.4
>Statements"
So you copied this
A.4 Statements
Statement :
and then deleted the second word. Weird.
>> Surely you've seen this :
>>
>> * do Statement while ( Expression );
>>
>> Inside a 'do' statement you must put another Statement (exactly one).
>> You mustn't put a FunctionDeclaration there.
>
>You can do it and it's not an error, see:
>http://groups.google.com/group/comp....bf14d724e82d77
>sooo, could you please post a example that proves your (and Garrett's)
>point, *please* ?
You can write anything you like where it says Statement, but whatever it
is it's most certainly not an ECMAScript FunctionDeclaration.
If the browser or whatever accepts what you write it will then do
whatever its unpublished specification says, but it won't call it a
FunctionDeclaration because that would be a non-conformance in anything
claiming to conform to ECMAScript.
John
--
John Harris