public void SetupNativeProperties(JsDictionaryObject target) { if (target == null || target == JsNull.Instance || target == JsUndefined.Instance) { throw new ArgumentException("A valid js object is required", "target"); } foreach (var prop in m_properties) { target.DefineOwnProperty(prop.Name, new NativeDescriptor(target, prop)); } }
public void SetupNativeProperties(JsDictionaryObject target) { if (target == null || target == JsNull.Instance || target == JsUndefined.Instance) { throw new ArgumentException("A valid js object is required", nameof(target)); } foreach (NativeDescriptor property in this.m_properties) { target.DefineOwnProperty((Descriptor) new NativeDescriptor(target, property)); } }
public override void DefineOwnProperty(Descriptor currentDescriptor) { if (bag != null) { bag.DefineOwnProperty(currentDescriptor); } else { base.DefineOwnProperty(currentDescriptor); } }