From 1a2a83f80ba4ecc28eba72af57c81bd43a45946c Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 11 Sep 2013 13:55:01 +0200 Subject: Use a ReturnedValue for Managed::call() Change-Id: Ief2d75e9789dd367c603d90dc0fe5316a0d055e3 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4errorobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4errorobject.cpp') diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp index 96c5f67120..0f08d6e758 100644 --- a/src/qml/jsruntime/qv4errorobject.cpp +++ b/src/qml/jsruntime/qv4errorobject.cpp @@ -245,9 +245,9 @@ Value ErrorCtor::construct(Managed *m, CallData *callData) return Value::fromObject(m->engine()->newErrorObject(callData->argc ? callData->args[0] : Value::undefinedValue())); } -Value ErrorCtor::call(Managed *that, CallData *callData) +ReturnedValue ErrorCtor::call(Managed *that, CallData *callData) { - return that->construct(callData); + return that->construct(callData).asReturnedValue(); } EvalErrorCtor::EvalErrorCtor(ExecutionContext *scope) -- cgit v1.2.3