Login
Artifact [f809931e55]
Login

Artifact f809931e55adca16368bbce26a2e8026771997f1:



assert undefined === catch {1+3};
var ex;
//ex = catch -> ",";
ex = catch -> {","};
//ex = catch{,}
//return ex;

assert 'exception' === typename ex;
assert 'string' === typename ex.script;
assert 'integer' === typename ex.line;
assert 'integer' === typename ex.column;
assert 'integer' === typename ex.code;
//print(typename ex,':',ex);

assert 'CWAL_RC_TYPE' === catch{var x; x.foo}.codeString();
assert 'CWAL_RC_NOT_FOUND' === catch{unknownVar}.codeString();

ex = catch [1,2,3].get(-1);
assert 'exception' === typename ex;
assert 303 === ex.code;
ex;