]> git.kaiwu.me - njs.git/commitdiff
Added externals backtrace test.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Mar 2020 12:24:54 +0000 (15:24 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Mar 2020 12:24:54 +0000 (15:24 +0300)
src/test/njs_interactive_test.c

index 7ab8fe6db7aa64bd846a4d4d49ad2dd81442cc6c..352fa1037349750f7fd0bb9a88cfdf2915b91b2a 100644 (file)
@@ -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") },