mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Stop using old polyfills
This commit is contained in:
parent
98cc547869
commit
2af61871de
2 changed files with 0 additions and 35 deletions
|
|
@ -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 poli from './fillers/polyfills';
|
||||
|
||||
poli.polyfill();
|
||||
|
||||
export class HTMLWorker {
|
||||
|
||||
private _ctx: IWorkerContext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue