Fix SIGSEV with malformed functions
This commit is contained in:
@@ -189,5 +189,14 @@ stringResult = add('foo', 'bar')
|
||||
delete stringVar;
|
||||
}
|
||||
|
||||
TEST_CASE( "Malformed parameter logs error", "[integration]" ) {
|
||||
Script* script = Script::Create(uR"(
|
||||
function blockOwnCritical( move, target, hitNumber )
|
||||
return true
|
||||
end
|
||||
)");
|
||||
REQUIRE(script->Diagnostics -> HasErrors());
|
||||
delete script;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user