From bef353decf6561bf036b27f1456192a016aa17ef Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Fri, 21 Oct 2022 18:48:39 -0700 Subject: [PATCH] Fixed shell tests after changes in backtraces and function names. --- test/shell_test.exp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/shell_test.exp b/test/shell_test.exp index c320fa57..6107aefe 100644 --- a/test/shell_test.exp +++ b/test/shell_test.exp @@ -313,9 +313,9 @@ njs_test { {"var print = console.dump.bind(console); print(1, 'a', [1, 2])\r\n" "1 a \\\[\r\n 1,\r\n 2\r\n]\r\nundefined\r\n>> "} {"var print = console.log.bind(console); print(console.a.a)\r\n" - "TypeError: cannot get property \"a\" of undefined*at console.log"} + "TypeError: cannot get property \"a\" of undefined"} {"print(console.a.a)\r\n" - "TypeError: cannot get property \"a\" of undefined*at console.log"} + "TypeError: cannot get property \"a\" of undefined"} } # Backtraces for external objects @@ -329,7 +329,7 @@ njs_test { {"var o = {toString: function(){}, log: console.log}\r\n" "undefined\r\n>> "} {"o\r\n" - "o\r\n{\r\n toString: \\\[Function],\r\n log: \\\[Function: log]\r\n}"} + "o\r\n{\r\n toString: \\\[Function: toString],\r\n log: \\\[Function: log]\r\n}"} } njs_test { @@ -387,7 +387,7 @@ njs_test { {"Object.keys(null)\r\n" "Thrown:\r\nTypeError: cannot convert null argument to object"} {"e\r\n" - "TypeError: cannot get property \"a\" of undefined*at f (shell:1)"} + "TypeError: cannot get property \"a\" of undefined"} } # Non-ASCII characters @@ -541,9 +541,9 @@ njs_test { {"import ref from 'ref_exception.js'\r\n" "ReferenceError: \"undeclared\" is not defined"} {"var ref\r\n" - "undefined\r\n"} + "SyntaxError: \"ref\" has already been declared"} {"import ref from 'ref_exception.js'\r\n" - "ReferenceError: \"undeclared\" is not defined"} + "SyntaxError: \"ref\" has already been declared"} } "-p test/js/module/ -p test/js/module/libs/" # quiet mode -- 2.47.3