Skip to content

Commit 79e2505

Browse files
authored
Fix declaration of _lock, take 2 (#132)
1 parent 7665d29 commit 79e2505

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

include/pyjs/pre_js/dynload/dynload.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
2-
let _lock;
3-
41
function createLock() {
5-
_lock = Promise.resolve();
2+
let _lock = Promise.resolve();
63

74
async function acquireLock() {
85
const old_lock = _lock;
@@ -14,7 +11,7 @@ function createLock() {
1411
return acquireLock;
1512
}
1613

17-
_lock = createLock();
14+
const _lock = createLock();
1815

1916
// * local
2017
// * global

0 commit comments

Comments
 (0)