-
-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Options.InteropOptions.BuildCallStackHandler #1793
Conversation
501229c
to
9e95bea
Compare
@lahma What do you think? |
Probably would need better documentation and tests, |
9e95bea
to
a7416d9
Compare
No longer exposing |
@lahma This is my first time writing a test, is it enough? |
We've discussed this over at Acornima adams85/acornima#6 This should warrant a sufficient use case. As hinted in the included test the feature aims to enable running transpiled TypeScript (and possibly other JS dialects) through Jint with matching error lines etc. Note that debugging is already possible with remapping |
This is starting to look nice with the example use case described with tests! I'm traveling until Saturday but probably with minor tweaks we can merge. |
@scgm0 the PR is missing XML doc for the newly added public members, if you want I can add that for you. |
Thank you, I need it very much! As I said, my English is terrible, and inaccurate translation can be misleading. . . |
One thing that came to mind is that would it be enough just to have callback |
The source map allows mapping function names(Although the typescript compiler does not seem to support it), and there may be users who prefer to use other formats for stack strings. For example, I like to use 4 spaces before |
The current format is node format I guess. We also need to consider if CallStackBuilder could be inherited and methods overridden, maybe configurable properties for indent. Need to tinker a bit |
@scgm0 I've opened a PR against your branch with the docs. Getting win/fw462 to pass the tests requires resigning the Tests assembly due to the added dependency on |
Thank you so much! |
a002795
to
ecdb627
Compare
I'm sorry, I'm using linux and still don't know why the win test fails ( |
f6010ee
to
dafba58
Compare
dafba58
to
5dd33d2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry it took so long, I rebased this and made minor adjustments, thank you for the contribution!
A preliminary idea, this would allow one to modify the stack string generation, such as using a map of the source map.