diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-11 21:10:11 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-11 20:52:40 +0000 |
commit | 2d6b08bd17377aa6bcb663029a196a8d19cac6ac (patch) | |
tree | 4bce8e27455c38b919a5a1706c6bb5b8b7f8813a /src/qml/jsruntime/qv4runtimeapi_p.h | |
parent | bde97ab6a72acafaa29d2da0f7a31ae23918a6b0 (diff) |
Give for loops a per-iteration context as well
Regular for loops also have a per iteration context for lexically
declared variables as well.
Change-Id: I35cb58bfb198c7dc32d70f41ea0ced7ddefcc37e
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4runtimeapi_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4runtimeapi_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4runtimeapi_p.h b/src/qml/jsruntime/qv4runtimeapi_p.h index f707de00f8..c98433359b 100644 --- a/src/qml/jsruntime/qv4runtimeapi_p.h +++ b/src/qml/jsruntime/qv4runtimeapi_p.h @@ -128,6 +128,7 @@ struct ExceptionCheck<void (*)(QV4::NoThrowEngine *, A, B, C)> { F(ReturnedValue, createCatchContext, (ExecutionContext *parent, int blockIndex, int exceptionVarNameIndex)) \ F(ReturnedValue, createBlockContext, (ExecutionContext *parent, int index)) \ F(ReturnedValue, createScriptContext, (ExecutionEngine *engine, int index)) \ + F(ReturnedValue, cloneBlockContext, (ExecutionContext *previous)) \ F(ReturnedValue, popScriptContext, (ExecutionEngine *engine)) \ \ /* closures */ \ |