Esempio n. 1
0
        // --------------------------------------------------------------------------------------------------------------------

        protected HandleProxy *_NamedPropertyGetter(string propertyName, ref ManagedAccessorInfo info)
        {
            try
            {
                var obj = _Engine._GetObjectWeakReference(info.ManagedObjectID);
                if (obj == null)
                {
                    return(null);
                }
                var mo = obj.Reset() as IV8ManagedObject; // (this acts also as a test because native object wrappers are also supported)
                return(mo != null?mo.NamedPropertyGetter(ref propertyName) : null);
            }
            catch (Exception ex)
            {
                return(_Engine.CreateError(Exceptions.GetFullErrorMessage(ex), JSValueType.ExecutionError));
            }
        }