summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4compilerscanfunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4compilerscanfunctions.cpp')
-rw-r--r--src/qml/compiler/qv4compilerscanfunctions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compilerscanfunctions.cpp b/src/qml/compiler/qv4compilerscanfunctions.cpp
index 7506b238f8..f3c1694b79 100644
--- a/src/qml/compiler/qv4compilerscanfunctions.cpp
+++ b/src/qml/compiler/qv4compilerscanfunctions.cpp
@@ -360,7 +360,7 @@ bool ScanFunctions::visit(Catch *ast)
TemporaryBoolAssignment allowFuncDecls(_allowFuncDecls, _context->isStrict ? false : _allowFuncDecls);
enterEnvironment(ast, ContextType::Block, QStringLiteral("%CatchBlock"));
_context->isCatchBlock = true;
- QString caughtVar = ast->patternElement->bindingIdentifier;
+ QString caughtVar = ast->patternElement->bindingIdentifier.toString();
if (caughtVar.isEmpty())
caughtVar = QStringLiteral("@caught");
_context->addLocalVar(caughtVar, Context::MemberType::VariableDefinition, VariableScope::Let);