Skip to content

Commit

Permalink
FIX Fix node global scope again
Browse files Browse the repository at this point in the history
Seems that pyodide#121 removed some stuff that we needed.
  • Loading branch information
hoodmane committed Nov 17, 2023
1 parent f2a56bb commit 95480dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytest_pyodide/node_test_driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ function _fetch(path) {
}

const context = {
loadPyodide,
...globalThis,
loadPyodide,
fetch: _fetch,
TextDecoder: util.TextDecoder,
TextEncoder: util.TextEncoder,
};
context.self = context;
vm.createContext(context);
Expand Down

0 comments on commit 95480dc

Please sign in to comment.