Value *Context::lookupPropertyDescriptor(String *name)
{
for (Context *ctx = this; ctx; ctx = ctx->parent) {
- if (ctx->activation.is(Value::Object_Type)) {
+ if (ctx->activation.isObject()) {
if (Value *prop = ctx->activation.objectValue()->getPropertyDescriptor(this, name)) {
return prop;
}
if (! object.isObject())
object = __qmljs_to_object(object, ctx);
- return object.property(ctx, name);
+ return object.objectValue()->getProperty(ctx, name);
}
void __qmljs_set_element(Context *ctx, Value object, Value index, Value value)
if (!thisObject.isObject())
thisObject = __qmljs_to_object(base, context);
- assert(thisObject.isObject());
- Value func = thisObject.property(context, name);
+ Value func = thisObject.objectValue()->getProperty(context, name);
if (FunctionObject *f = func.asFunctionObject()) {
Context k;
Context *ctx = f->needsActivation ? context->engine->newContext() : &k;