Skip to content

Commit 9cbccdc

Browse files
committed
1 parent 8f21d86 commit 9cbccdc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/vs/base/common/worker/simpleWorker.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
import { transformErrorForSerialization } from 'vs/base/common/errors';
77
import { Disposable } from 'vs/base/common/lifecycle';
88
import { isWeb } from 'vs/base/common/platform';
9+
import { PolyfillPromise } from 'vs/base/common/winjs.polyfill.promise';
10+
11+
var global: any = self;
12+
13+
// When missing, polyfill the native promise
14+
// with our winjs-based polyfill
15+
if (typeof global.Promise === 'undefined') {
16+
global.Promise = PolyfillPromise;
17+
}
918

1019
const INITIALIZE = '$initialize';
1120

0 commit comments

Comments
 (0)