aboutsummaryrefslogtreecommitdiff
path: root/src/njs_date.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_date.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_date.c')
-rw-r--r--src/njs_date.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/njs_date.c b/src/njs_date.c
index 2832abbd..03e866a1 100644
--- a/src/njs_date.c
+++ b/src/njs_date.c
@@ -375,8 +375,8 @@ njs_date_alloc(njs_vm_t *vm, double time)
return NULL;
}
- njs_lvlhsh_init(&date->object.hash);
- njs_lvlhsh_init(&date->object.shared_hash);
+ njs_flathsh_init(&date->object.hash);
+ njs_flathsh_init(&date->object.shared_hash);
date->object.type = NJS_DATE;
date->object.shared = 0;
date->object.extensible = 1;
@@ -1443,13 +1443,13 @@ njs_date_prototype_to_json(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
{
njs_int_t ret;
njs_value_t value;
- njs_flathsh_query_t lhq;
+ njs_flathsh_query_t fhq;
if (njs_is_object(njs_argument(args, 0))) {
- lhq.proto = &njs_object_hash_proto;
- lhq.key_hash = NJS_ATOM_STRING_toISOString;
+ fhq.proto = &njs_object_hash_proto;
+ fhq.key_hash = NJS_ATOM_STRING_toISOString;
- ret = njs_object_property(vm, njs_object(njs_argument(args, 0)), &lhq,
+ ret = njs_object_property(vm, njs_object(njs_argument(args, 0)), &fhq,
&value);
if (njs_slow_path(ret == NJS_ERROR)) {