Skip to content

Commit 2f6e3da

Browse files
committed
Add rendering for async stack frames
1 parent df10eae commit 2f6e3da

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

source-map-support.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,17 @@ function CallSiteToString() {
299299
}
300300

301301
var line = "";
302+
var isAsync = this.isAsync ? this.isAsync() : false;
303+
if(isAsync) {
304+
line += 'async ';
305+
var isPromiseAll = this.isPromiseAll ? this.isPromiseAll() : false;
306+
var isPromiseAny = this.isPromiseAny ? this.isPromiseAny() : false;
307+
if(isPromiseAny || isPromiseAll) {
308+
line += isPromiseAll ? 'Promise.all (index ' : 'Promise.any (index ';
309+
var promiseIndex = this.getPromiseIndex();
310+
line += promiseIndex + ')';
311+
}
312+
}
302313
var functionName = this.getFunctionName();
303314
var addSuffix = true;
304315
var isConstructor = this.isConstructor();

0 commit comments

Comments
 (0)