Stop using old polyfills

This commit is contained in:
Alex Dima 2020-09-07 16:26:25 +02:00
parent 98cc547869
commit 2af61871de
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
2 changed files with 0 additions and 35 deletions

View file

@ -1,31 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export function polyfill() {
// Object.assign, for IE11
if (typeof Object['assign'] != 'function') {
Object.defineProperty(Object, "assign", {
value: function assign(destination, sources) {
'use strict';
if (destination !== null) {
for (let i = 1; i < arguments.length; i++) {
const source = arguments[i];
if (source) {
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
destination[key] = source[key]
}
}
}
};
}
return destination;
},
writable: true,
configurable: true
});
}
}

View file

@ -8,10 +8,6 @@ import IWorkerContext = monaco.worker.IWorkerContext;
import * as htmlService from 'vscode-html-languageservice'; import * as htmlService from 'vscode-html-languageservice';
import * as poli from './fillers/polyfills';
poli.polyfill();
export class HTMLWorker { export class HTMLWorker {
private _ctx: IWorkerContext; private _ctx: IWorkerContext;