Change error message description (#4785)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-10-01 12:24:20 +02:00
committed by GitHub
parent 2a82da62ad
commit 7d355b0f8e
4 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -1065,7 +1065,7 @@ main (void)
test_syntax_error ("b = 'hello';\nvar a = (;",
NULL,
"SyntaxError: Primary expression expected [<anonymous>:2:10]",
"SyntaxError: Unexpected end of input [<anonymous>:2:10]",
false);
parse_options.options = JERRY_PARSE_HAS_RESOURCE;
@@ -1073,12 +1073,12 @@ main (void)
test_syntax_error ("b = 'hello';\nvar a = (;",
&parse_options,
"SyntaxError: Primary expression expected [filename.js:2:10]",
"SyntaxError: Unexpected end of input [filename.js:2:10]",
false);
test_syntax_error ("eval(\"var b;\\nfor (,); \");",
&parse_options,
"SyntaxError: Primary expression expected [<eval>:2:6]",
"SyntaxError: Unexpected end of input [<eval>:2:6]",
true);
parse_options.options |= JERRY_PARSE_HAS_START;