/// <summary> /// Delete the value at the specified index of an object. /// </summary> /// <remarks> /// Requires an active script context. /// </remarks> /// <param name="index">The index to delete.</param> public void DeleteIndexedProperty(JavaScriptValue index) { Native.ThrowIfError(Native.JsDeleteIndexedProperty(this, index)); }
/// <summary> /// Sets an object's property. /// </summary> /// <remarks> /// Requires an active script context. /// </remarks> /// <param name="id">The ID of the property.</param> /// <param name="value">The new value of the property.</param> /// <param name="useStrictRules">The property set should follow strict mode rules.</param> public void SetProperty(JavaScriptPropertyId id, JavaScriptValue value, bool useStrictRules) { Native.ThrowIfError(Native.JsSetProperty(this, id, value, useStrictRules)); }
/// <summary> /// Set the value at the specified index of an object. /// </summary> /// <remarks> /// Requires an active script context. /// </remarks> /// <param name="index">The index to set.</param> /// <param name="value">The value to set.</param> public void SetIndexedProperty(JavaScriptValue index, JavaScriptValue value) { Native.ThrowIfError(Native.JsSetIndexedProperty(this, index, value)); }
/// <summary> /// Sets an object to not be extensible. /// </summary> /// <remarks> /// Requires an active script context. /// </remarks> public void PreventExtension() { Native.ThrowIfError(Native.JsPreventExtension(this)); }