public
/
jst_server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386b5f7
)
Fix let-bug in Resources.unref() caught by ES6 (another was fixed previously)
master
author
Nick Downing
<nick@ndcode.org>
Wed, 26 Jan 2022 23:17:15 +0000
(10:17 +1100)
committer
Nick Downing
<nick@ndcode.org>
Wed, 26 Jan 2022 23:17:15 +0000
(10:17 +1100)
Resources.mjs
patch
|
blob
|
history
diff --git
a/Resources.mjs
b/Resources.mjs
index
410caaf
..
6437af0
100644
(file)
--- a/
Resources.mjs
+++ b/
Resources.mjs
@@
-57,7
+57,7
@@
class Resources {
}
async unref(key) {
- result = this.map.get(key)
+
let
result = this.map.get(key)
assert(result !== undefined && result.refs > 0)
result.refs -= 1
if (this.diag)