/// <summary>
/// Determines whether an object has a property.
/// </summary>
/// <remarks>
/// Requires an active script context.
/// </remarks>
/// <param name="propertyId">The ID of the property.</param>
/// <returns>Whether the object (or a prototype) has the property.</returns>
public bool HasProperty(JavaScriptPropertyId propertyId)
{
bool hasProperty;
Native.ThrowIfError(Native.JsHasProperty(this, propertyId, out hasProperty));
return(hasProperty);
}