Open TristanSpeakEasy opened 1 year ago
I would prefer if this is customizable more then it being done in a specific way for two reasons:
Which means that I have the string representation hardcoded so I can match against it. And also that I have gone through some lengths so that the hardcoded value looks like something fairly okay for someone writing JS to understand the callstack.
I don't know what the API or the concrete thing to do should be, but it will be nice if we have mechanism to make this line in the stacktrace w/e we want. Potentially also:
Would be great if possible to be able to have useful callstack information for when the call stack contains information about a native call in the case of something like js -> go -> js.
An example:
where it would be amazing if the line
github.com/speakeasy-api/easytemplate.(*Engine).init.func1.1 (native)
contain better information as to the native method called and its line number