]> git.kaiwu.me - njs.git/commit
Added process global object.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 18 Jun 2019 14:57:38 +0000 (17:57 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 18 Jun 2019 14:57:38 +0000 (17:57 +0300)
commitdb34b1921fce3a101570cf0e33cf5a3a6725fee6
treeb4dcd46241d6038e75b3ac8755e6e04c65c6daeb
parent8878c6b6694a2f15d45a605999b6d7667e688c22
Added process global object.

process object properties:
    argv - an array containing the command line arguments
    env - an object containing the user environment
    pid - process PID
    ppid - process parent PID

This closes #84 issue on Github.
12 files changed:
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c
njs/njs.h
njs/njs_builtin.c
njs/njs_generator.c
njs/njs_lexer.h
njs/njs_lexer_keyword.c
njs/njs_object_hash.h
njs/njs_parser_terminal.c
njs/njs_shell.c
njs/njs_vm.h
njs/test/njs_expect_test.exp