summaryrefslogtreecommitdiffstats
path: root/src/v4/qv4objectproto.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-05 21:38:09 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-06 23:34:35 +0200
commitab62ad883041221ceda6cf8f80bf4720b9e93998 (patch)
tree468cae3a1d5582874af9949e67eb45af7c6600d5 /src/v4/qv4objectproto.cpp
parentf2971f053f2a24677fc2bcaf907435f4e949a54b (diff)
Convert the remaining builtin methods to use the SimpleCallContext
Change-Id: Ib01bd0c15578b93829abd6fcf8df22cac12daf14 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
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 9d63ea05..907b6fe2 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())