erictgrubaugh
03/09/2017, 11:55 PMfunction thisThrowsAnError() {
throw nlapiCreateError("testing");
}
function go() {
try {
thisThrowsAnError();
} catch(e) {
console.log(e.getStackTrace());
}
}
go()
prints:
stacktrace: function nlobjError(c,a,b)arguments: {'testing','undefined','undefined'}
function nlapiCreateError(c,a,b)arguments: {'testing'}
function thisThrowsAnError() arguments: {}
function go() arguments: {}