diff options
| author | Igor Minar | 2012-05-02 21:59:55 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-05-03 10:07:30 -0700 |
| commit | 9cba23a58847b8a856785a026aa95980cc690115 (patch) | |
| tree | d167e550a051037b527b8982c415cb4ea60c2bae /test/testabilityPatch.js | |
| parent | 705f4bbf115d2408e33b25f56edbf1f383aabb82 (diff) | |
| download | angular.js-9cba23a58847b8a856785a026aa95980cc690115.tar.bz2 | |
chore(trace): add helper method trace
use it as trace('label') to dump the stack during debugging
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index a60bc1df..1272fb49 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -232,3 +232,7 @@ function provideLog($provide) { function pending() { dump('PENDING'); }; + +function trace(name) { + dump(new Error(name).stack); +} |
