Skip to content

Commit 70f637a

Browse files
authored
Update dynload.js
1 parent 26dd8b0 commit 70f637a

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

include/pyjs/pre_js/dynload/dynload.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ function createLock() {
1414

1515
_lock = createLock();
1616

17-
18-
1917
// * local
2018
// * global
21-
// * undefined // when we dont
19+
// * undefined // when we dont know (ie almost always ^^)
2220
function libraryType (path) {
2321
if (path.includes("cpython-3") && path.includes("-wasm32-emscripten.so")) {
2422
return "local";
@@ -31,7 +29,6 @@ function createLock() {
3129
return parts[parts.length - 1];
3230
}
3331

34-
3532
async function loadDynlibsFromPackage(
3633
prefix,
3734
python_version,
@@ -79,19 +76,7 @@ async function loadDynlibsFromPackage(
7976
Module.stackRestore(stack);
8077
const promise = Module.getPromise(pid);
8178
Module.promiseMap.free(pid);
82-
// time it
83-
const start = performance.now();
84-
85-
8679
await promise;
87-
88-
89-
90-
91-
const end = performance.now();
92-
93-
94-
9580
} catch (e) {
9681
const dll_error_ptr = Module._dlerror();
9782
if (dll_error_ptr === 0) {

0 commit comments

Comments
 (0)