P. 1
Ecma-262

Ecma-262

5.0

|Views: 18|Likes:
Publicado porrubenstt
Fonte: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
Fonte: http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf

More info:

Published by: rubenstt on Feb 24, 2008
Direitos Autorais:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/08/2014

pdf

text

original

There are three types of ECMAScript executable code:

Global code is source text that is treated as an ECMAScript Program. The global code of a particular
Program does not include any source text that is parsed as part of a FunctionBody.

Eval code is the source text supplied to the built-in eval function. More precisely, if the parameter
to the built-in eval function is a string, it is treated as an ECMAScript Program. The eval code for a
particular invocation of eval is the global code portion of the string parameter.

Function code is source text that is parsed as part of a FunctionBody. The function code of a
particular FunctionBody does not include any source text that is parsed as part of a nested
FunctionBody. Function code also denotes the source text supplied when using the built-in
Function object as a constructor. More precisely, the last parameter provided to the Function
constructor is converted to a string and treated as the FunctionBody. If more than one parameter is
provided to the Function constructor, all parameters except the last one are converted to strings
and concatenated together, separated by commas. The resulting string is interpreted as the
FormalParameterList for the FunctionBody defined by the last parameter. The function code for a
particular instantiation of a Function does not include any source text that is parsed as part of a
nested FunctionBody.

You're Reading a Free Preview

Descarregar
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->