From 2af61871def0ac4de926d83d601d8d11f6527a6a Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 7 Sep 2020 16:26:25 +0200 Subject: [PATCH] Stop using old polyfills --- src/fillers/polyfills.ts | 31 ------------------------------- src/htmlWorker.ts | 4 ---- 2 files changed, 35 deletions(-) delete mode 100644 src/fillers/polyfills.ts diff --git a/src/fillers/polyfills.ts b/src/fillers/polyfills.ts deleted file mode 100644 index 1bf6c46c..00000000 --- a/src/fillers/polyfills.ts +++ /dev/null @@ -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 - }); - } -} \ No newline at end of file diff --git a/src/htmlWorker.ts b/src/htmlWorker.ts index d3b0241b..496197db 100644 --- a/src/htmlWorker.ts +++ b/src/htmlWorker.ts @@ -8,10 +8,6 @@ import IWorkerContext = monaco.worker.IWorkerContext; import * as htmlService from 'vscode-html-languageservice'; -import * as poli from './fillers/polyfills'; - -poli.polyfill(); - export class HTMLWorker { private _ctx: IWorkerContext;