Merge pull request #2582 from node-red-hitachi/fix-IE11-support

remove JSONata Array.from check for IE11
This commit is contained in:
Nick O'Leary 2020-05-28 11:04:15 +01:00 committed by GitHub
commit 70c0c7bc14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");