diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-15 14:03:09 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-23 13:19:05 +0000 |
commit | df616013cabfe255398868ab742d54e8558bff12 (patch) | |
tree | bd9e1d8d29998760c5621c3e62d6b43cd9ee48bf /src/qml/compiler/qv4compilercontext_p.h | |
parent | 6f1e2722b9eef73a4fe19951b47c4b172642a2ba (diff) |
Cleanup handling of direct evals
There's no need to force lookups by name in an outer function
just because an inner function uses eval(). The lookup by name
is only required on the call context level, where eval() could
add new variables.
Change-Id: I8cad6d27524f496304342dfe1449ea913ef99fca
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compilercontext_p.h')
-rw-r--r-- | src/qml/compiler/qv4compilercontext_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compilercontext_p.h b/src/qml/compiler/qv4compilercontext_p.h index 95fca2c2c8..cce833f2ac 100644 --- a/src/qml/compiler/qv4compilercontext_p.h +++ b/src/qml/compiler/qv4compilercontext_p.h @@ -144,6 +144,7 @@ struct Context { int nRegisters = 0; int registerOffset = -1; bool hasDirectEval = false; + bool allVarsEscape = false; bool hasNestedFunctions = false; bool isStrict = false; bool isArrowFunction = false; |