You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
Nested function definitions are not allowed in ECMAScript but most browsers allow them. Actually, ECMAScript is aware of it. The ECMAScript specification contains the following note:
NOTE
Several widely used implementations of ECMAScript are known to support
the use of FunctionDeclaration as a
Statement. However there are significant and irreconcilable variations
among the implementations in the semantics applied
to such FunctionDeclarations. Because of these irreconcilable
differences, the use of a FunctionDeclaration as a Statement
results in code that is not reliably portable among implementations.
It is recommended that ECMAScript implementations
either disallow this usage of FunctionDeclaration or issue a warning
when such a usage is encountered. Future editions of
ECMAScript may define alternative portable means for declaring
functions in a Statement context.
We noticed that LambdaJS allows nested function definitions while the spec does not allow them technically.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Nested function definitions are not allowed in ECMAScript but most browsers allow them. Actually, ECMAScript is aware of it. The ECMAScript specification contains the following note:
NOTE
Several widely used implementations of ECMAScript are known to support
the use of FunctionDeclaration as a
Statement. However there are significant and irreconcilable variations
among the implementations in the semantics applied
to such FunctionDeclarations. Because of these irreconcilable
differences, the use of a FunctionDeclaration as a Statement
results in code that is not reliably portable among implementations.
It is recommended that ECMAScript implementations
either disallow this usage of FunctionDeclaration or issue a warning
when such a usage is encountered. Future editions of
ECMAScript may define alternative portable means for declaring
functions in a Statement context.
We noticed that LambdaJS allows nested function definitions while the spec does not allow them technically.
The text was updated successfully, but these errors were encountered: