Stop using old polyfills

pull/2748/head
Alex Dima 5 years ago
parent 98cc547869
commit 2af61871de
No known key found for this signature in database
GPG Key ID: 6E58D7B045760DA0

@ -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
});
}
}

@ -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;

Loading…
Cancel
Save