mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 10:48:17 +00:00
This commit is contained in:
parent
8f21d86c00
commit
9cbccdc2c5
1 changed files with 9 additions and 0 deletions
|
@ -6,6 +6,15 @@
|
|||
import { transformErrorForSerialization } from 'vs/base/common/errors';
|
||||
import { Disposable } from 'vs/base/common/lifecycle';
|
||||
import { isWeb } from 'vs/base/common/platform';
|
||||
import { PolyfillPromise } from 'vs/base/common/winjs.polyfill.promise';
|
||||
|
||||
var global: any = self;
|
||||
|
||||
// When missing, polyfill the native promise
|
||||
// with our winjs-based polyfill
|
||||
if (typeof global.Promise === 'undefined') {
|
||||
global.Promise = PolyfillPromise;
|
||||
}
|
||||
|
||||
const INITIALIZE = '$initialize';
|
||||
|
||||
|
|
Loading…
Reference in a new issue