1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

remove JSONata Arra.from check for IE11

This commit is contained in:
Hiroyasu Nishiyama 2020-05-28 13:22:14 +09:00
parent cf00acac04
commit 9d8cbcb993

View File

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