summaryrefslogtreecommitdiff
path: root/src/qml/compiler/qv4compilercontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4compilercontext.cpp')
-rw-r--r--src/qml/compiler/qv4compilercontext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compilercontext.cpp b/src/qml/compiler/qv4compilercontext.cpp
index 7acc8256f0..bd9d19f491 100644
--- a/src/qml/compiler/qv4compilercontext.cpp
+++ b/src/qml/compiler/qv4compilercontext.cpp
@@ -195,7 +195,8 @@ void Context::emitBlockHeader(Codegen *codegen)
}
}
- if (usesThis && !isStrict) {
+ if (usesThis) {
+ Q_ASSERT(!isStrict);
// make sure we convert this to an object
Instruction::ConvertThisToObject convert;
bytecodeGenerator->addInstruction(convert);