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
1 changed files with 0 additions and 6 deletions

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