Catch insufficient arguments

This commit is contained in:
Federico Cecchetto
2021-06-18 23:18:04 +02:00
parent 376e7f11ec
commit 2a0789692f
3 changed files with 44 additions and 3 deletions

View File

@ -143,7 +143,7 @@ namespace json
{
gsc::function::add("array", [](gsc::function_args args)
{
scripting::array array(args);
scripting::array array(args.get_raw());
return array.get_raw();
});