Fix let-bug in Resources.unref() caught by ES6 (another was fixed previously) master
authorNick Downing <nick@ndcode.org>
Wed, 26 Jan 2022 23:17:15 +0000 (10:17 +1100)
committerNick Downing <nick@ndcode.org>
Wed, 26 Jan 2022 23:17:15 +0000 (10:17 +1100)
Resources.mjs

index 410caaf..6437af0 100644 (file)
@@ -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)