Commit 7011525f authored by Michael Droettboom's avatar Michael Droettboom

Properly mark packages as loaded

parent 69b20cb4
......@@ -48,7 +48,7 @@ var languagePluginLoader = new Promise((resolve, reject) => {
pyodide.monitorRunDependencies = (n) => {
if (n === 0) {
loadedPackages.add.apply(loadedPackages, toLoad);
toLoad.forEach((package) => loadedPackages.add(package));
delete pyodide.monitorRunDependencies;
const packageList = Array.from(toLoad.keys()).join(', ');
resolve(`Loaded ${packageList}`);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment