-
Notifications
You must be signed in to change notification settings - Fork 280
allow a user to create and cache GPS #150
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
Conversation
|
Thanks! Would it be possible to add a test for |
|
Sure, I guess just test that a n instance of GPS ends up on the stack trace Sent from RelateIQ On January 15, 2016 at 7:52 AMEric Wendelinnotifications@github.com wrote: Thanks! Would it be possible to add a test for createGlobalGPSInstance? — |
|
Actually, what might be a more consistent approach would be to allow the user to pass in a Should be easy to write a test. Here's a sample: https://github.com/stacktracejs/stacktrace-gps/blob/master/spec/stacktrace-gps-spec.js#L209 |
|
The only reason I didn't take that approach is that the user never actually Sent from RelateIQ On January 15, 2016 at 7:02 PMEric Wendelinnotifications@github.com wrote: Actually, what might be a more consistent approach would be to allow the Should be easy to write a test. Here's a sample: — |
stacktrace.js
Outdated
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.
Nitpick: whitespace here
|
You make good points about avoiding the need to keep track of StackTrace and a separate GPS instance. If one can just call |
|
so i thought about allowing |
|
closing in favor of using the opts.sourceCache |
@eriwen