aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4objectproto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4objectproto.cpp')
-rw-r--r--src/v4/qv4objectproto.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/v4/qv4objectproto.cpp b/src/v4/qv4objectproto.cpp
index 9d63ea0575..907b6fe27f 100644
--- a/src/v4/qv4objectproto.cpp
+++ b/src/v4/qv4objectproto.cpp
@@ -149,14 +149,14 @@ Value ObjectPrototype::method_getOwnPropertyDescriptor(SimpleCallContext *ctx)
return fromPropertyDescriptor(ctx, desc);
}
-Value ObjectPrototype::method_getOwnPropertyNames(ExecutionContext *parentCtx, Value, Value *argv, int argc)
+Value ObjectPrototype::method_getOwnPropertyNames(SimpleCallContext *context)
{
- Object *O = argc ? argv[0].asObject() : 0;
+ Object *O = context->argumentCount ? context->arguments[0].asObject() : 0;
if (!O)
- parentCtx->throwTypeError();
+ context->throwTypeError();
- ArrayObject *array = parentCtx->engine->newArrayObject(parentCtx)->asArrayObject();
- ObjectIterator it(parentCtx, O, ObjectIterator::NoFlags);
+ ArrayObject *array = context->engine->newArrayObject(context)->asArrayObject();
+ ObjectIterator it(context, O, ObjectIterator::NoFlags);
while (1) {
Value v = it.nextPropertyNameAsString();
if (v.isNull())