Skip to content

Commit 10b297f

Browse files
committed
fix async stacktraces getting clobbered
1 parent 352cddf commit 10b297f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/api/test/common/extensionHostMain.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ suite('ExtensionHostMain#ErrorHandler - Wrapping prepareStackTrace can cause slo
6363
}]
6464
);
6565

66+
const originalPrepareStackTrace = Error.prepareStackTrace;
6667
const insta = new InstantiationService(collection, false);
6768

6869
let existingErrorHandler: (e: any) => void;
@@ -81,6 +82,10 @@ suite('ExtensionHostMain#ErrorHandler - Wrapping prepareStackTrace can cause slo
8182
findSubstrCount = 0;
8283
});
8384

85+
teardown(() => {
86+
Error.prepareStackTrace = originalPrepareStackTrace;
87+
});
88+
8489
test('basics', function () {
8590

8691
const err = new Error('test1');

0 commit comments

Comments
 (0)