We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da94f5 commit 4b08451Copy full SHA for 4b08451
pytest_pyodide/node_test_driver.js
@@ -17,22 +17,10 @@ function _fetch(path) {
17
18
const context = {
19
loadPyodide,
20
- path,
21
- process,
22
- require,
23
- setTimeout,
24
- fetch: _fetch,
25
- TextDecoder: util.TextDecoder,
26
- TextEncoder: util.TextEncoder,
27
- URL,
28
- clearInterval,
29
- clearTimeout,
30
- setInterval,
31
32
- Headers
+ ...globalThis,
33
};
+context.self = context;
34
vm.createContext(context);
35
-vm.runInContext("globalThis.self = globalThis;", context);
36
37
// Get rid of all colors in output of console.log, they mess us up.
38
for (let key of Object.keys(util.inspect.styles)) {
0 commit comments