提交 93338c61 编写于 作者: J Joao Moreno

warn about uncaught exceptions inside LazyPromise

related to #37221
上级 69deb411
......@@ -5,6 +5,7 @@
'use strict';
import { TPromise, ValueCallback, ErrorCallback } from 'vs/base/common/winjs.base';
import { onUnexpectedError } from 'vs/base/common/errors';
export class LazyPromise {
......@@ -75,6 +76,10 @@ export class LazyPromise {
if (this._actual) {
this._actualErr(err);
} else {
// If nobody's listening at this point, it is safe to assume they never will,
// since resolving this promise is always "async"
onUnexpectedError(err);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册