Skip to content

Commit 57a486b

Browse files
committed
es6 - remove Proxy placeholder declaration
1 parent f9465d1 commit 57a486b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/vs/platform/instantiation/common/instantiationService.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ import { IdleValue } from 'vs/base/common/async';
1313
// TRACING
1414
const _enableTracing = false;
1515

16-
// PROXY
17-
// Ghetto-declare of the global Proxy object. This isn't the proper way
18-
// but allows us to run this code in the browser without IE11.
19-
declare const Proxy: any;
20-
const _canUseProxy = typeof Proxy === 'function';
21-
2216
class CyclicDependencyError extends Error {
2317
constructor(graph: Graph<any>) {
2418
super('cyclic dependency between services');
@@ -211,8 +205,8 @@ export class InstantiationService implements IInstantiationService {
211205
}
212206

213207
private _createServiceInstance<T>(ctor: any, args: any[] = [], _supportsDelayedInstantiation: boolean, _trace: Trace): T {
214-
if (!_supportsDelayedInstantiation || !_canUseProxy) {
215-
// eager instantiation or no support JS proxies (e.g. IE11)
208+
if (!_supportsDelayedInstantiation) {
209+
// eager instantiation
216210
return this._createInstance(ctor, args, _trace);
217211

218212
} else {

0 commit comments

Comments
 (0)