SymbolTable table = createSymbolTable("customExternFn(1);");
Symbol fn = getGlobalVar(table, "customExternFn");
List<Reference> refs = table.getReferenceList(fn);
assertEquals(2, refs.size());
SymbolScope scope = table.getEnclosingScope(refs.get(0).getNode());
assertTrue(scope.isGlobalScope());
assertEquals(SymbolTable.GLOBAL_THIS,
table.getSymbolForScope(scope).getName());
}