From 6bb28d99f46425b18f8bab8e8ce837b171fbb937 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 26 Apr 2018 19:20:04 +0300 Subject: [PATCH] Improved variable names in Object.isPrototypeOf(). --- njs/njs_object.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/njs/njs_object.c b/njs/njs_object.c index ef0d791a..06a31e72 100644 --- a/njs/njs_object.c +++ b/njs/njs_object.c @@ -1531,15 +1531,15 @@ njs_object_prototype_is_prototype_of(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs, njs_index_t unused) { njs_object_t *object, *proto; - const njs_value_t *value, *obj, *retval; + const njs_value_t *prototype, *value, *retval; retval = &njs_value_false; - value = &args[0]; - obj = njs_arg(args, nargs, 1); + prototype = &args[0]; + value = njs_arg(args, nargs, 1); - if (njs_is_object(value) && njs_is_object(obj)) { - proto = value->data.u.object; - object = obj->data.u.object; + if (njs_is_object(prototype) && njs_is_object(value)) { + proto = prototype->data.u.object; + object = value->data.u.object; do { object = object->__proto__; -- 2.47.3