Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9cba23a

Browse files
committed
chore(trace): add helper method trace
use it as trace('label') to dump the stack during debugging
1 parent 705f4bb commit 9cba23a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/testabilityPatch.js

+4
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,7 @@ function provideLog($provide) {
232232
function pending() {
233233
dump('PENDING');
234234
};
235+
236+
function trace(name) {
237+
dump(new Error(name).stack);
238+
}

0 commit comments

Comments
 (0)