diff options
Diffstat (limited to 'src/qml/compiler/qv4compilercontext.cpp')
-rw-r--r-- | src/qml/compiler/qv4compilercontext.cpp | 3 |
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); |