Welcome! Log In Create A New Profile

Advanced

[njs] Added externals backtrace test.

Dmitry Volyntsev
March 05, 2020 08:12AM
details: https://hg.nginx.org/njs/rev/51ce6ffc3c66
branches:
changeset: 1352:51ce6ffc3c66
user: Dmitry Volyntsev <xeioex@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") },

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Added externals backtrace test.

Dmitry Volyntsev 108 March 05, 2020 08:12AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready