   [readyWheres, hoistableWheres] = wheresWithHoisting whereList tokens
   if hoistableWheres.length > 0
     undefinedNames = []
-    for {names} in hoistableWheres
-      undefinedNames.push names...
+    for {missing} in hoistableWheres
+      undefinedNames.push (setToArray missing)...
     throw new Error "#{undefinedNames.join ', '} used but not defined"
   addToScopeAllNames readyWheres
   graphToWheres readyWheres

    def: [pattern, def]
    set: dependencySet()
    names: findNames pattern
    missing: []

  lookupByName = lookupTableForGraph graph


          addDependency child.set, name for name in parent.names unless child is parent
          addDependency deps, parent
        else if !node.label and !lookupIdentifier token, node
          addDependency child.missing, node.token
  [graph, lookupByName]

lookupTableForGraph = (graph) ->
