]> git.kaiwu.me - njs.git/commit
Simplified condition in njs_function_alloc().
authorValentin Bartenev <vbart@nginx.com>
Sat, 4 May 2019 02:52:15 +0000 (05:52 +0300)
committerValentin Bartenev <vbart@nginx.com>
Sat, 4 May 2019 02:52:15 +0000 (05:52 +0300)
commit9155d2f51ca4987c96f304bfae50edf746c812cd
tree65a0a2cc02899eceab4e989078fe4836498b4b22
parent0a1efccedcdd78c299351abdc702507961885fae
Simplified condition in njs_function_alloc().

There's no reason to check both flags when one depends on another.
See just a few lines above: function->ctor = !lambda->arrow.

Now the condition is made similar to the one in njs_method_private_copy().
njs/njs_function.c