Add message for Potential leak stack

This commit is contained in:
Matt Bierner 2019-07-03 15:52:58 -07:00
parent 6bb0ffb66e
commit 79eb7d841e

View file

@ -35,7 +35,7 @@ function trackDisposable<T extends IDisposable>(x: T): T {
return x;
}
const stack = new Error().stack!;
const stack = new Error('Potentially leaked disposable').stack!;
setTimeout(() => {
if (!(x as any)[__is_disposable_tracked__]) {
console.log(stack);