diff options
| author | Lars Knoll <lars.knoll@digia.com> | 2014-11-27 15:18:41 +0100 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-12-19 16:30:05 +0100 |
| commit | 0eac5a4938affdb930201df8be91cb9b6e1c93ac (patch) | |
| tree | e8045867a15d87a61d9ed4e2ae2e697fab0e5a37 /src/qml/jsruntime/qv4script.cpp | |
| parent | a0c81e29713f991afa0a2442a7ca3b095ad97c2a (diff) | |
Make ExecutionContextSaver GC safe
Change-Id: I29f00366d24c770afe4ba4579106d81a8c9043df
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index 34daafefdf..203ef04240 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -296,7 +296,7 @@ ReturnedValue Script::run() if (qml.isUndefined()) { TemporaryAssignment<Function*> savedGlobalCode(engine->globalCode, vmFunction); - ExecutionContextSaver ctxSaver(scope); + ExecutionContextSaver ctxSaver(valueScope, scope); ContextStateSaver stateSaver(scope); scope->d()->strictMode = vmFunction->isStrict(); scope->d()->lookups = vmFunction->compilationUnit->runtimeLookups; |
