]> git.kaiwu.me - njs.git/commitdiff
Improved variable names in Object.isPrototypeOf().
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 26 Apr 2018 16:20:04 +0000 (19:20 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 26 Apr 2018 16:20:04 +0000 (19:20 +0300)
njs/njs_object.c

index ef0d791a889c2478dfb0f21c0a12c13580d8507a..06a31e72dec7d8871273714ffc08d86168745cd8 100644 (file)
@@ -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__;