You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// callback is called with an Array[StackFrame] every time wrapped function is called
58
+
varmyFunc=function(arg) { return'Hello '+ arg; }
59
+
var myWrappedFunc =StackTrace.instrument(myFunc, callback, errback)
60
60
=> Instrumented Function
61
+
myWrappedFunc('world');
62
+
=>'Hello world'
61
63
62
-
StackTrace.deinstrument(interestingFn)
64
+
// Use this if you overwrote you original function
65
+
myFunc =StackTrace.deinstrument(myFunc)
63
66
=> De-instrumented Function
64
67
```
65
68
@@ -147,6 +150,8 @@ I recommend the [stack-trace node package](https://www.npmjs.com/package/stack-t
147
150
It has a very similar API and also supports source maps.
148
151
149
152
## Contributing
153
+
This project adheres to the [Open Code of Conduct](http://todogroup.org/opencodeofconduct/#stacktrace.js/me@eriwen.com). By participating, you are expected to honor this code.
154
+
150
155
Want to be listed as a *Contributor*? Start with the [Contributing Guide](https://github.com/stacktracejs/stacktrace.js/blob/master/CONTRIBUTING.md)!
151
156
152
157
This project is made possible due to the efforts of these fine people:
0 commit comments