mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #2582 from node-red-hitachi/fix-IE11-support
remove JSONata Array.from check for IE11
This commit is contained in:
		@@ -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");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user