]> git.kaiwu.me - njs.git/commit
Removed argument prototypes for built-in functions.
authorAlexander Borisov <alexander.borisov@nginx.com>
Tue, 22 Oct 2019 16:58:52 +0000 (19:58 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Tue, 22 Oct 2019 16:58:52 +0000 (19:58 +0300)
commit1d045e0e286ca6b9a44d680254c508095d98f6c9
tree19745c3839fde662eb0217f8ce91aa743a079bce
parentb67d7e48b87ee2e24f86f0ccd7a4ceb352083a57
Removed argument prototypes for built-in functions.

Many JS functions do not have fixed prototypes as in C. For example
String.prototype.replace() accepts RegExp or String as the first argument.
21 files changed:
src/njs_array.c
src/njs_boolean.c
src/njs_builtin.c
src/njs_crypto.c
src/njs_date.c
src/njs_error.c
src/njs_fs.c
src/njs_function.c
src/njs_function.h
src/njs_json.c
src/njs_math.c
src/njs_module.c
src/njs_number.c
src/njs_number.h
src/njs_object.c
src/njs_regexp.c
src/njs_string.c
src/njs_value.c
src/njs_value.h
src/test/njs_interactive_test.c
src/test/njs_unit_test.c