diff options
Diffstat (limited to 'src/qml/jsruntime/qv4errorobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4errorobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4errorobject.cpp b/src/qml/jsruntime/qv4errorobject.cpp index ef9dc473f3..12ac4218bd 100644 --- a/src/qml/jsruntime/qv4errorobject.cpp +++ b/src/qml/jsruntime/qv4errorobject.cpp @@ -172,7 +172,7 @@ ReturnedValue ErrorObject::method_get_stack(SimpleCallContext *ctx) Scope scope(ctx); Scoped<ErrorObject> This(scope, ctx->callData->thisObject); if (!This) - ctx->throwTypeError(); + return ctx->throwTypeError(); if (!This->stack) { QString trace; for (int i = 0; i < This->stackTrace.count(); ++i) { @@ -389,7 +389,7 @@ ReturnedValue ErrorPrototype::method_toString(SimpleCallContext *ctx) Object *o = ctx->callData->thisObject.asObject(); if (!o) - ctx->throwTypeError(); + return ctx->throwTypeError(); ScopedValue name(scope, o->get(ctx->engine->id_name)); QString qname; |