mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
fix test
This commit is contained in:
parent
0a4bc8d0b1
commit
0854ac3ca1
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ export class PolyfillPromise<T = any> implements Promise<T> {
|
|||
},
|
||||
onRejected && function (err) {
|
||||
if (!sync) {
|
||||
onFulfilled(err);
|
||||
onRejected(err);
|
||||
} else {
|
||||
platform.setImmediate(() => onFulfilled(err));
|
||||
platform.setImmediate(() => onRejected(err));
|
||||
}
|
||||
}
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue