diff options
author | Nicholas H.Tollervey <ntoll@ntoll.org> | 2023-07-11 18:05:28 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-07-13 13:24:35 +1000 |
commit | 14c2b641312c7faec20b521b910a6354280ca068 (patch) | |
tree | b7c2c9984bcfb36a194f0a5fed797cfccae28ca3 /tests/basics/async_for.py | |
parent | 88771c150098df53aa6a3fedcdd25b11eeb4e134 (diff) | |
download | micropython-14c2b641312c7faec20b521b910a6354280ca068.tar.gz micropython-14c2b641312c7faec20b521b910a6354280ca068.zip |
webassembly: Replace typeof window check with ENVIRONMENT_IS_NODE flag.
When the "typeof window" check is run within a web worker the window is
undefined, causing an error because "require" is only defined in a Node
environment. Change the logic to reflect the true intentions of when this
code should run, ie in Node only.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/async_for.py')
0 files changed, 0 insertions, 0 deletions