Skip to content

Commit 67269dd

Browse files
committed
Adapt test expectations to V8 error message changes
V8 5.1 uses slightly changed SyntaxError messages. This adapts our tests as needed (for support of V8 5.1 as well as older versions)
1 parent 82ffaa2 commit 67269dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/checkstring.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Deprecated: Function V8Js::checkString() is deprecated in %s on line %d
2020
bool(true)
2121

2222
Deprecated: Function V8Js::checkString() is deprecated in %s on line %d
23-
string(60) "V8Js::checkString():1: SyntaxError: Unexpected token ILLEGAL"
23+
string(%d) "V8Js::checkString():1: SyntaxError: %s"
2424
===EOF===

tests/checkstring_compile.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ try {
1717
===EOF===
1818
--EXPECTF--
1919
resource(%d) of type (V8Js script)
20-
string(62) "V8Js::compileString():1: SyntaxError: Unexpected token ILLEGAL"
20+
string(%d) "V8Js::compileString():1: SyntaxError: %s"
2121
===EOF===

0 commit comments

Comments
 (0)