def set(self, name, value, traverser=None):
        directory = self._get_contents(traverser)
        if directory and isinstance(directory, dict) and directory in name:
            traverser._debug("Setting global member %s" % name)
            obj = self.get(traverser, name)
            if not isinstance(obj, JSLiteral):
                obj._set_to(value, traverser=traverser)
            else:
                modified_global = self.global_data.get("name", "(unknown)")
                traverser.warning(
                    err_id=("js", "global", "literal_assignment"),
                    warning="Assignment to JS literal",
                    description=[
                        "A JS literal was overwritten. This may cause issues "
                        "and usually indicates other problems with the code.",
                        "Modified global: %s.%s" % (modified_global, name)])
        return super(JSGlobal, self).set(name, value, traverser=traverser)
dataset/ETHPy150Open mozilla/app-validator/appvalidator/testcases/javascript/jstypes.py/JSGlobal.set/swapped operands of `in`