aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4script_p.h')
-rw-r--r--src/qml/jsruntime/qv4script_p.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4script_p.h b/src/qml/jsruntime/qv4script_p.h
index 62e1e566bf..96c3b4b32d 100644
--- a/src/qml/jsruntime/qv4script_p.h
+++ b/src/qml/jsruntime/qv4script_p.h
@@ -65,19 +65,16 @@ namespace QV4 {
struct ContextStateSaver {
Value *savedContext;
- bool strictMode;
QV4::Function *v4Function;
ContextStateSaver(const Scope &scope, ExecutionContext *context)
: savedContext(scope.alloc(1))
- , strictMode(context->d()->strictMode)
, v4Function(context->d()->v4Function)
{
savedContext->setM(context->d());
}
ContextStateSaver(const Scope &scope, Heap::ExecutionContext *context)
: savedContext(scope.alloc(1))
- , strictMode(context->strictMode)
, v4Function(context->v4Function)
{
savedContext->setM(context);
@@ -86,7 +83,6 @@ struct ContextStateSaver {
~ContextStateSaver()
{
Heap::ExecutionContext *ctx = static_cast<Heap::ExecutionContext *>(savedContext->m());
- ctx->strictMode = strictMode;
ctx->v4Function = v4Function;
}
};