From: Dmitry Volyntsev Date: Thu, 5 Mar 2020 12:24:54 +0000 (+0300) Subject: Added externals backtrace test. X-Git-Tag: 0.4.0~28 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=0f690a75d642b2780bc6824dc4d1f4131ace6612;p=njs.git Added externals backtrace test. --- 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") },