Review request for 8017950: error.stack should be a string rather than an array

A. Sundararajan sundararajan.athijegannathan at
Wed Jun 26 04:11:22 PDT 2013

Removed __stack__ property for getStackTrace()

For 'stack' property, we want user code to "override" our getter/setter 
based retrieval of stack string -- with whatever value they'd like to 


On Wednesday 26 June 2013 03:11 PM, Hannes Wallnoefer wrote:
> Both the Error stack property and the getStackTrace() method seem to 
> return the __stack__ property if it is defined. Shouldn't that only be 
> used for the stack property?
> Generally I'm wondering if there isn't a better solution for a 
> rewritable getter than to use a hidden property. I'll try a few 
> things, even if I have the feeling I've been here before.
> Hannes
> Am 2013-06-26 10:27, schrieb A. Sundararajan:
>> Please review
>> -Sundar

More information about the nashorn-dev mailing list