mirror of https://github.com/pyodide/pyodide.git
Fix bug loading multiple packages
This commit is contained in:
parent
b8b9519575
commit
d34755e7aa
|
@ -21,10 +21,6 @@ var languagePluginLoader = new Promise((resolve, reject) => {
|
||||||
};
|
};
|
||||||
let loadedPackages = new Set();
|
let loadedPackages = new Set();
|
||||||
let loadPackage = (names) => {
|
let loadPackage = (names) => {
|
||||||
if (Array.isArray(names)) {
|
|
||||||
names = [ names ];
|
|
||||||
}
|
|
||||||
|
|
||||||
// DFS to find all dependencies of the requested packages
|
// DFS to find all dependencies of the requested packages
|
||||||
let queue = new Array(names);
|
let queue = new Array(names);
|
||||||
let toLoad = new Set();
|
let toLoad = new Set();
|
||||||
|
|
Loading…
Reference in New Issue