I'm still learning javascript, so to a guru this might be obvious.
It appears that the stacktrace proptery of nlobjError only states a method's name if that method is global. In other words, this code (psuedo):
a(); function a() { b(); } function b() { throw nlapiCreateError('test', 'test'); } Will print something like:function nlobjError(args)function nlapiCreateError(args)function b();function a();See, this is nice because you can tell that b() was the last succsessful call.However, this code: function MyObj(){}; MyObj.prototype.a = function() { this.b(); } MyObj.prototype.b = function() { throw nlapiCreateError('test', 'test'); } Will print something like:function nlobjError(args)function nlapiCreateError(args)function ();function ();No method names!I tested and this is also the case with static methods.This is a very limiting situation. I'm not sure how NetSuite is tracking the call stack, if they are just recursively walking the stack via the caller property, but if possible please put the method names in there if you can.Anyone found a workaround for this? Changing all my code to global functions isn't possible.