Exemplo n.º 1
0
        internal virtual JSValue CloneImpl(bool force, JSValueAttributesInternal resetMask)
        {
            if (!force && (_attributes & JSValueAttributesInternal.Cloned) != 0)
            {
                _attributes &= ~(JSValueAttributesInternal.Cloned | resetMask);
                return(this);
            }

            var res = new JSValue();

            res.Assign(this);
            res._attributes = this._attributes & ~resetMask;
            return(res);
        }
Exemplo n.º 2
0
 internal virtual JSValue CloneImpl(JSValueAttributesInternal resetMask)
 {
     return(CloneImpl(true, resetMask));
 }