Welcome! Log In Create A New Profile

Advanced

[njs] Improved variable names in Object.isPrototypeOf().

Dmitry Volyntsev
April 26, 2018 12:24PM
details: http://hg.nginx.org/njs/rev/eb2caababd77
branches:
changeset: 506:eb2caababd77
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Apr 26 19:20:04 2018 +0300
description:
Improved variable names in Object.isPrototypeOf().

diffstat:

njs/njs_object.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r e7878051e75d -r eb2caababd77 njs/njs_object.c
--- a/njs/njs_object.c Thu Apr 26 19:11:29 2018 +0300
+++ b/njs/njs_object.c Thu Apr 26 19:20:04 2018 +0300
@@ -1531,15 +1531,15 @@ njs_object_prototype_is_prototype_of(njs
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__;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Improved variable names in Object.isPrototypeOf().

Dmitry Volyntsev 366 April 26, 2018 12:24PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 110
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready