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 | 229 | "try {" |
| 230 | 230 | " testClass.doRaiseTest();" |
| 231 | 231 | "} catch (err) {" |
| 232 | − " if (err === \"Exception test!\") {" | |
| 232 | + " if (err.message.includes(\"Exception test!\")) {" | |
| 233 | 233 | " print(\"Caught!\");" |
| 234 | 234 | " }" |
| 235 | 235 | "}" |