8.1.1.4.12 HasVarDeclaration ( N )

全局环境记录的具体 Environment 记录方法 HasVarDeclaration 确定参数标识符在使用 VariableStatement FunctionDeclaration 创建的记录中是否具有绑定:

  1. 使 envRec 变为调用该方法的全局环境记录。
  2. 使 varDeclaredNames 变为 envRec.[[VarNames]]。
  3. 如果 varDeclaredNames 包含 N,则返回 true.。
  4. 否则返回 false

results matching ""

    No results matching ""