aboutsummaryrefslogtreecommitdiff
path: root/src/njs_promise.c
diff options
context:
space:
mode:
authorVadim Zhestikov <v.zhestikov@f5.com>2025-07-11 15:51:14 -0700
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>2025-07-18 06:41:30 -0700
commitb605a4d93f7e282835b6f8df58eb7f22456ddec5 (patch)
tree4d435d2c75f391fafd148b137854e19d81e96496 /src/njs_promise.c
parentb46cbce9c721ca288f2c403a1263e92cad687e10 (diff)
downloadnjs-master.tar.gz
njs-master.zip
Removed remnants of level hash.HEADmaster
Level hash has not been compiled since e64a376 (0.8.1) when flat hash was introduced. However, the compatibility layer remained to reduce the diff.
Diffstat (limited to 'src/njs_promise.c')
-rw-r--r--src/njs_promise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/njs_promise.c b/src/njs_promise.c
index 78043af4..a0ca8516 100644
--- a/src/njs_promise.c
+++ b/src/njs_promise.c
@@ -117,8 +117,8 @@ njs_promise_alloc(njs_vm_t *vm)
goto memory_error;
}
- njs_lvlhsh_init(&promise->object.hash);
- njs_lvlhsh_init(&promise->object.shared_hash);
+ njs_flathsh_init(&promise->object.hash);
+ njs_flathsh_init(&promise->object.shared_hash);
promise->object.type = NJS_PROMISE;
promise->object.shared = 0;
promise->object.extensible = 1;