From 9d8cbcb9938d95ad311d88717aba8130e811a1f6 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Thu, 28 May 2020 13:22:14 +0900 Subject: [PATCH] remove JSONata Arra.from check for IE11 --- .../@node-red/editor-client/src/js/polyfills.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/polyfills.js b/packages/node_modules/@node-red/editor-client/src/js/polyfills.js index 0fccee8d9..ffe7269f9 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/polyfills.js +++ b/packages/node_modules/@node-red/editor-client/src/js/polyfills.js @@ -12,12 +12,6 @@ Object.defineProperty(SVGElement.prototype, 'children', Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'children')); } - if (!Array.from) { - // JSONata provides an Array.from polyfill that doesn't handle iterables. - // So in IE11 we expect Array.from to exist already, it just needs some - // changes to support iterables. - throw new Error("Missing Array.from base polyfill"); - } Array.from = function() { if (arguments.length > 1) { throw new Error("Node-RED's IE11 Array.from polyfill doesn't support multiple arguments");