Skip to content

Commit 7d68b39

Browse files
committed
Stop sharing pAsyncFlags between hooks
1 parent c5fd169 commit 7d68b39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libhook.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
});
2727
}
2828
};
29+
})();
30+
31+
(function() {
32+
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
33+
let pAsyncFlags = 0;
2934

3035
Module['commit_hook'] = function(db, xCommitHook) {
3136
if (pAsyncFlags) {

0 commit comments

Comments
 (0)