Showing the changes to tests/script-engine/src/ScriptEngineTests.cpp (1 of 1 file). Show all
Unified · Split
| @@ -229,7 +229,7 @@ void ScriptEngineTests::testRaiseExceptionAndCatch() { · 228 unmodified lines | |||
| 229 | "try {" | 229 | "try {" |
| 230 | " testClass.doRaiseTest();" | 230 | " testClass.doRaiseTest();" |
| 231 | "} catch (err) {" | 231 | "} catch (err) {" |
| 232 | " if (err === \"Exception test!\") {" | 232 | " if (err.message.includes(\"Exception test!\")) {" |
| 233 | " print(\"Caught!\");" | 233 | " print(\"Caught!\");" |
| 234 | " }" | 234 | " }" |
| 235 | "}" | 235 | "}" |