]> git.kaiwu.me - njs.git/commitdiff
Shell: fixed output of large values for last evaluated expression.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 17 Dec 2019 15:22:50 +0000 (18:22 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 17 Dec 2019 15:22:50 +0000 (18:22 +0300)
src/njs_shell.c

index f509ce3dec4792830ebcc980c0381a4d327a8ad1..b68e058c11299ddcf7688876be37e7344b6612b3 100644 (file)
@@ -750,7 +750,8 @@ njs_output(njs_opts_t *opts, njs_vm_t *vm, njs_int_t ret)
         }
 
         if (vm->options.accumulative) {
-            njs_printf("%V\n", &out);
+            njs_print(out.start, out.length);
+            njs_print("\n", 1);
         }
 
     } else {