const njs_value_t *property)
{
uint32_t index;
- uint32_t (*hash)(const void *, size_t);
njs_ret_t ret;
njs_object_t *obj;
njs_value_t prop;
property = ∝
}
- hash = nxt_djb_hash;
-
switch (object->type) {
case NJS_BOOLEAN:
if (nxt_fast_path(ret == NXT_OK)) {
njs_string_get(&pq->value, &pq->lhq.key);
- pq->lhq.key_hash = hash(pq->lhq.key.start, pq->lhq.key.length);
+ pq->lhq.key_hash = nxt_djb_hash(pq->lhq.key.start, pq->lhq.key.length);
if (obj == NULL) {
pq->own = 1;