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 /py/builtinimport.c | |
| parent | 88771c150098df53aa6a3fedcdd25b11eeb4e134 (diff) | |
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 'py/builtinimport.c')
0 files changed, 0 insertions, 0 deletions
