'Add a member variable to this object
@param name {unicode} The name of the member
@param value {JSObject} The value to add
@returns {JSObject} The resulting member (possibly different from
|value| if one with the given |name| exists)'

def addMemberVariable(self, name, value):

    assert isinstance(value, JSObject), ('addMemberVariable:    bad    value%r' % (value,))
    v = self.members.get(name, None)
    if (v is None):
        v = self.variables.get(name, None)
    if (v is None):
        log.info('CLASSMBR:    %r,    in    %s    %r', name, self.cixname, self.name)
        self.members[name] = v = value
    else:
        self._mergeVariables(v, value)
    return v
