Example #1
0
        // --------------------------------------------------------------------------------------------------------------------

        protected HandleProxy *_NamedPropertyGetter(string propertyName, ref ManagedAccessorInfo info)
        {
            try
            {
                var obj = _Engine._GetExistingObject(info.ManagedObjectID);
                if (obj == null)
                {
                    return(null);
                }
                var mo     = obj as IV8ManagedObject;
                var result = mo != null?mo.NamedPropertyGetter(ref propertyName) : null;

                return(result);
            }
            catch (Exception ex)
            {
                return(_Engine.CreateError(Exceptions.GetFullErrorMessage(ex), JSValueType.ExecutionError));
            }
        }