summaryrefslogtreecommitdiffstats
path: root/src/v4/qmljs_runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qmljs_runtime.cpp')
-rw-r--r--src/v4/qmljs_runtime.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/v4/qmljs_runtime.cpp b/src/v4/qmljs_runtime.cpp
index 520c1e3c..58ff36ab 100644
--- a/src/v4/qmljs_runtime.cpp
+++ b/src/v4/qmljs_runtime.cpp
@@ -1028,10 +1028,11 @@ Value __qmljs_builtin_typeof_name(String *name, ExecutionContext *context)
return __qmljs_builtin_typeof(context->getPropertyNoThrow(name), context);
}
-Value __qmljs_builtin_typeof_member(Value base, String *name, ExecutionContext *context)
+void __qmljs_builtin_typeof_member(ExecutionContext *context, Value *result, const Value &base, String *name)
{
Value obj = base.toObject(context);
- return __qmljs_builtin_typeof(obj.objectValue()->__get__(context, name), context);
+ if (result)
+ *result = __qmljs_builtin_typeof(obj.objectValue()->__get__(context, name), context);
}
Value __qmljs_builtin_typeof_element(Value base, Value index, ExecutionContext *context)