提交 11590a31 编写于 作者: J Johannes Rieken

fix #59763

上级 596104a2
...@@ -82,8 +82,7 @@ suite('Async', () => { ...@@ -82,8 +82,7 @@ suite('Async', () => {
const cancellablePromise = async.createCancelablePromise(token => { const cancellablePromise = async.createCancelablePromise(token => {
order.push('in callback'); order.push('in callback');
token.onCancellationRequested(_ => order.push('cancelled')); token.onCancellationRequested(_ => order.push('cancelled'));
// TODO: TS 3.1 upgrade. Why are we passing void? return new Promise(c => setTimeout(c.bind(1234), 0));
return new Promise(c => setTimeout((c as any)(1234), 0));
}); });
order.push('afterCreate'); order.push('afterCreate');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册