]> git.kaiwu.me - njs.git/commit
Slightly optimized njs_object_keys_array().
authorValentin Bartenev <vbart@nginx.com>
Sat, 1 Dec 2018 19:32:33 +0000 (22:32 +0300)
committerValentin Bartenev <vbart@nginx.com>
Sat, 1 Dec 2018 19:32:33 +0000 (22:32 +0300)
commit5d114c76b3b70165c00c32dd3504e0271f52cd3a
tree51637b5e57300d2610d38298995db60352a562ea
parentf0dc7105c37f656cb2c5ce073998420e98eff3b4
Slightly optimized njs_object_keys_array().

There is no need to iterate over the object properties second time if after
the first attempt we know that it contains no enumerable properties.

Also removed surplus conditions.
njs/njs_object.c