]> git.kaiwu.me - njs.git/commit
Fixed njs_builtin_match().
authorhongzhidao <hongzhidao@gmail.com>
Sun, 4 Aug 2019 08:06:30 +0000 (04:06 -0400)
committerhongzhidao <hongzhidao@gmail.com>
Sun, 4 Aug 2019 08:06:30 +0000 (04:06 -0400)
commitf5b1b4bfec439b2747d473ae729fbf83bb3d5db1
tree94199e13274dd9b30ca668afe7894a3f2a8a8e69
parentd7981fdbd53744fc563424cc729839236bce64e6
Fixed njs_builtin_match().

Previously native functions were identified by comparing pointers to
njs_function_t. This is not correct because njs_function_t maybe copied
from shared prototypes. Instead pointers to native functions should be
compared.
src/njs_builtin.c
src/test/njs_interactive_test.c