return true;
}
-bool Object::hasProperty(Context *, String *name) const
+bool Object::hasProperty(Context *ctx, String *name) const
{
if (members)
return members->find(name) != 0;
- return false;
+ return prototype ? prototype->hasProperty(ctx, name) : false;
}
bool Object::deleteProperty(Context *, String *name, bool flag)
case IR::OpStrictEqual: op = __qmljs_se; break;
case IR::OpStrictNotEqual: op = __qmljs_sne; break;
case IR::OpInstanceof: op = __qmljs_instanceof; break;
-
- case IR::OpIn:
- Q_UNIMPLEMENTED();
- assert(!"TODO");
- break;
+ case IR::OpIn: op = __qmljs_in; break;
case IR::OpAnd:
case IR::OpOr: