Steps To Reproduce
Steps To Reproduce
- have the following script:
try{
showToast(getVariable('not_in_global')); // not_in_global doesn't exist
showToast(JSON.parse('{')); // '{' is not a valid json
}
catch (e)
{
showDialog(e.message, "ex");
}
Expected behavior
exception from getVariable can be catched
Actual behavior
It pops up an 'Error' dialog and then aborts, when running into getVariable.
It's not like JSON.parse which indeed shows the customized 'ex'
Steps To Reproduce
Steps To Reproduce
try{
showToast(getVariable('not_in_global')); // not_in_global doesn't exist
showToast(JSON.parse('{')); // '{' is not a valid json
}
catch (e)
{
showDialog(e.message, "ex");
}
Expected behavior
exception from getVariable can be catched
Actual behavior
It pops up an 'Error' dialog and then aborts, when running into getVariable.
It's not like JSON.parse which indeed shows the customized 'ex'