aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/v4/qv4functionobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v4/qv4functionobject.cpp b/src/v4/qv4functionobject.cpp
index a108865284..2380c1a994 100644
--- a/src/v4/qv4functionobject.cpp
+++ b/src/v4/qv4functionobject.cpp
@@ -364,7 +364,7 @@ Value ScriptFunction::construct(Managed *that, ExecutionContext *context, Value
quintptr stackSpace[stackContextSize/sizeof(quintptr)];
ExecutionContext *ctx = context->engine->newCallContext(stackSpace, f, Value::fromObject(obj), args, argc);
- Value result = Value::undefinedValue();
+ Value result;
try {
result = f->function->code(ctx, f->function->codeData);
} catch (Exception &ex) {
@@ -393,7 +393,7 @@ Value ScriptFunction::call(Managed *that, ExecutionContext *context, const Value
}
}
- Value result = Value::undefinedValue();
+ Value result;
try {
result = f->function->code(ctx, f->function->codeData);
} catch (Exception &ex) {