From 9cba23a58847b8a856785a026aa95980cc690115 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 2 May 2012 21:59:55 -0700 Subject: chore(trace): add helper method trace use it as trace('label') to dump the stack during debugging --- test/testabilityPatch.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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); +} -- cgit v1.2.3