diff options
| author | Damien George <damien@micropython.org> | 2023-05-19 17:00:53 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-07-13 13:50:50 +1000 |
| commit | 606ec9bfb1cca262cf5b936db78924a609f9e73d (patch) | |
| tree | 7cbb1b8a5d15fc493a9d1546b6317155456d8e24 /py/builtinimport.c | |
| parent | 14c2b641312c7faec20b521b910a6354280ca068 (diff) | |
py/compile: Fix async for's stack handling of iterator expression.
Prior to this fix, async for assumed the iterator expression was a simple
identifier, and used that identifier as a local to store the intermediate
iterator object. This is incorrect behaviour.
This commit fixes the issue by keeping the iterator object on the stack as
an anonymous local variable.
Fixes issue #11511.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/builtinimport.c')
0 files changed, 0 insertions, 0 deletions
