public static bool HasOwnProperty(ScriptEngine engine, object thisObject, object key) { key = TypeConverter.ToPropertyKey(key); TypeUtilities.VerifyThisObject(engine, thisObject, "hasOwnProperty"); return TypeConverter.ToObject(engine, thisObject).GetOwnPropertyDescriptor(key).Exists; }