def has_var(self, name, traverser=None):
        directory = self._get_contents(traverser)
        if directory and name in directory:
            return True
        return super(JSGlobal, self).has_var(name, traverser=traverser)
dataset/ETHPy150Open mozilla/app-validator/appvalidator/testcases/javascript/jstypes.py/JSGlobal.has_var/original