From 0f690a75d642b2780bc6824dc4d1f4131ace6612 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Thu, 5 Mar 2020 15:24:54 +0300 Subject: [PATCH] Added externals backtrace test. --- src/test/njs_interactive_test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/njs_interactive_test.c b/src/test/njs_interactive_test.c index 7ab8fe6d..352fa103 100644 --- a/src/test/njs_interactive_test.c +++ b/src/test/njs_interactive_test.c @@ -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") }, -- 2.47.3