diff options
Diffstat (limited to 'src/v4/qmljs_runtime.cpp')
-rw-r--r-- | src/v4/qmljs_runtime.cpp | 5 |
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) |