私はEcmaScript仕様書を読んでいます。 9.2.12でVarDeclaredNamesとVarScopedDeclarationsの違いは何ですか?
、があります。
11.Let varNames be the VarDeclaredNames of code.
12.Let varDeclarations be the VarScopedDeclarations of code.
そして13.1.5と13.1.6で:
13.1.5 Static Semantics: VarDeclaredNames
Statement :
EmptyStatement
ExpressionStatement
ContinueStatement
BreakStatement
ReturnStatement
ThrowStatement
DebuggerStatement
Return a new empty List.
13.1.6 Static Semantics: VarScopedDeclarations
Statement :
EmptyStatement
ExpressionStatement
ContinueStatement
BreakStatement
ReturnStatement
ThrowStatement
DebuggerStatement
Return a new empty List.
彼らは私が違いますかを知りたいsame.Soのように見えますVarDeclaredNames
とVarScopedDeclarations
の間?いくつかの例を教えてもらえますか?
ありがとうございました。 VariableDeclaration S、ForBinding S、FunctionDeclarationの sおよびGeneratorDeclaration S:
§13.1はこれらの静的セマンティクスを詳述する唯一のセクションではありません – Bergi
@Bergi申し訳ありませんが、私も知っています "See also:13.1.5,13.2.11,13.3.2.2,13.6.5,13.7.2.4,13.7.3.4 13.7.4.5,13.7.5.7,13.11.5,13.12.7,13.13.12,13.15.5,14.2.12,15.1.5,15.2.1.13 "である。しかし、私は13.1よりも詳細に問題を記述している他の説明は見つかりません。 –
他の種類のステートメントのセクションでは、 'VarDeclaredNames'は' VarScopedDeclarations'とは異なります。 – Bergi