John Lenz (2014-03-27T16:56:05.000Z)
domenic at domenicdenicola.com (2014-03-30T16:11:56.221Z)
On Thu, Mar 27, 2014 at 9:11 AM, Erik Arvidsson <erik.arvidsson at gmail.com>wrote: > The V8 API has some issues that it returns objects (getThis, getFunction > and getEvalOrigin). For security reasons we would want to limit what the > API gives you to names and locations. I think you mean prepareStackTrace here. "captureStackTrace" allows you apply the stack trace while ignoring zero or more known methods in the call stack. > We can probably reuse V8's and Chakra's toString format here. That would be awesome by itself. > Since we have to do a new API we can decide either way. Personally I > prefer at creation maybe there are some performance benefits to only add it > on throw? If "prepareStackTrace" is available and can reset a stack trace, adding it on throw if not set seems sufficient. > Same here. New API. What is the desired behavior? If "prepareStackTrace" is available and can reset a stack trace, adding it on rethrow if not set seems sufficient. I haven't looked at existing behavior.