]> git.kaiwu.me - njs.git/commit
Shell: improved njs_vm_value_dump().
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 11 Apr 2019 18:24:16 +0000 (21:24 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 11 Apr 2019 18:24:16 +0000 (21:24 +0300)
commitecb607956189ecb6b06f8bae09530c4da48f11fb
tree5b880028931208d0a02780fdb55b3a9800d90635
parent140a738f31f63ab4dec8ecb264e35b0dc9998ddd
Shell: improved njs_vm_value_dump().

njs_vm_value_dump() is used in two modes:
1) printing value of the previous expression in the shell.
2) console.log().

The behavior is different. Strings are printed with quotes
in the first case, but without in the second. Also special
ASCII symbols should not be escaped in console.log().
njs/njs.c
njs/njs.h
njs/njs_builtin.c
njs/njs_json.c
njs/njs_shell.c
njs/test/njs_expect_test.exp