diff options
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4jsonobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4jsonobject.cpp b/src/qml/jsruntime/qv4jsonobject.cpp index a3ffdb5431..18f9e17f11 100644 --- a/src/qml/jsruntime/qv4jsonobject.cpp +++ b/src/qml/jsruntime/qv4jsonobject.cpp @@ -957,7 +957,7 @@ ReturnedValue JsonObject::method_stringify(const FunctionObject *b, const Value ScopedValue arg0(scope, argc ? argv[0] : Value::undefinedValue()); QString result = stringify.Str(QString(), arg0); - if (result.isEmpty() || scope.engine->hasException) + if (result.isEmpty() || scope.hasException()) RETURN_UNDEFINED(); return Encode(scope.engine->newString(result)); } |
