aboutsummaryrefslogtreecommitdiff
path: root/projects/njs
diff options
context:
space:
mode:
authorMax Moroz <mmoroz@chromium.org>2019-11-15 15:10:38 -0800
committerGitHub <noreply@github.com>2019-11-15 15:10:38 -0800
commit6f7dfda6098549eb46d93e36c536dfc1fb651e47 (patch)
tree9c5523ade1d99a5eb50dd3ff35301c8f59b0a156 /projects/njs
parent6ea69ad37d87eabfacf7c24e0f106297eae06080 (diff)
downloadoss-fuzz-6f7dfda6098549eb46d93e36c536dfc1fb651e47.tar.gz
[njs] Fix broken build. (#3036)
Diffstat (limited to 'projects/njs')
-rw-r--r--projects/njs/njs_process_script_fuzzer.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/projects/njs/njs_process_script_fuzzer.c b/projects/njs/njs_process_script_fuzzer.c
index fa3e61116..09938b99c 100644
--- a/projects/njs/njs_process_script_fuzzer.c
+++ b/projects/njs/njs_process_script_fuzzer.c
@@ -18,8 +18,6 @@
#include <njs_main.h>
#include <njs_value.h>
-#include <njs_builtin.h>
-
// The vast majority of the code was copied from njs/njs_shell.c.
typedef struct {
@@ -82,8 +80,6 @@ static njs_int_t njs_ext_console_log(njs_vm_t *vm, njs_value_t *args,
njs_uint_t nargs, njs_index_t unused);
static njs_int_t njs_ext_console_dump(njs_vm_t *vm, njs_value_t *args,
njs_uint_t nargs, njs_index_t unused);
-static njs_int_t njs_ext_console_help(njs_vm_t *vm, njs_value_t *args,
- njs_uint_t nargs, njs_index_t unused);
static njs_int_t njs_ext_console_time(njs_vm_t *vm, njs_value_t *args,
njs_uint_t nargs, njs_index_t unused);
static njs_int_t njs_ext_console_time_end(njs_vm_t *vm, njs_value_t *args,
@@ -125,18 +121,6 @@ static njs_external_t njs_ext_console[] = {
njs_ext_console_dump,
0 },
- { njs_str("help"),
- NJS_EXTERN_METHOD,
- NULL,
- 0,
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- njs_ext_console_help,
- 0 },
-
{ njs_str("time"),
NJS_EXTERN_METHOD,
NULL,
@@ -472,37 +456,6 @@ njs_ext_console_dump(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
static njs_int_t
-njs_ext_console_help(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
- njs_index_t unused)
-{
- const njs_object_init_t *obj, **objpp;
-
- njs_printf("VM built-in objects:\n");
-
- for (objpp = njs_constructor_init; *objpp != NULL; objpp++) {
- obj = *objpp;
-
- njs_printf(" %V\n", &obj->name);
- }
-
- for (objpp = njs_object_init; *objpp != NULL; objpp++) {
- obj = *objpp;
-
- njs_printf(" %V\n", &obj->name);
- }
-
- njs_printf("\nEmbedded objects:\n");
- njs_printf(" console\n");
-
- njs_printf("\n");
-
- vm->retval = njs_value_undefined;
-
- return NJS_OK;
-}
-
-
-static njs_int_t
njs_ext_console_time(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs,
njs_index_t unused)
{