[njs] Added externals backtrace test.
Dmitry Volyntsev
xeioex at nginx.com
Thu Mar 5 13:10:19 UTC 2020
details: https://hg.nginx.org/njs/rev/51ce6ffc3c66
branches:
changeset: 1352:51ce6ffc3c66
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Thu Mar 05 15:24:54 2020 +0300
description:
Added externals backtrace test.
diffstat:
src/test/njs_interactive_test.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r eb9258cfcf40 -r 51ce6ffc3c66 src/test/njs_interactive_test.c
--- a/src/test/njs_interactive_test.c Thu Mar 05 15:24:52 2020 +0300
+++ b/src/test/njs_interactive_test.c Thu Mar 05 15:24:54 2020 +0300
@@ -185,6 +185,11 @@ static njs_interactive_test_t njs_test[
" at eval (native)\n"
" at main (native)\n") },
+ { njs_str("$r.some_method({}.a.a)" ENTER),
+ njs_str("TypeError: cannot get property \"a\" of undefined\n"
+ " at request.proto.some_method (native)\n"
+ " at main (native)\n") },
+
{ njs_str("new Function(\n\n@)" ENTER),
njs_str("SyntaxError: Unexpected token \"@\" in 3") },
More information about the nginx-devel
mailing list