Comparing version 1.0.1 to 1.0.3
@@ -626,9 +626,19 @@ import _construct from "@babel/runtime/helpers/construct"; | ||
//fix: [,,,1,2] | ||
var items = node.elements.map(function (element) { | ||
return _this7.createClosure(element); | ||
return element ? _this7.createClosure(element) : element; | ||
}); | ||
return function () { | ||
return items.map(function (item) { | ||
return item(); | ||
}); | ||
var len = items.length; | ||
var result = Array(len); | ||
for (var i = 0; i < len; i++) { | ||
var item = items[i]; | ||
if (item) { | ||
result[i] = item(); | ||
} | ||
} | ||
return result; | ||
}; | ||
@@ -775,3 +785,4 @@ }; | ||
}, | ||
configurable: false, | ||
writable: true, | ||
configurable: true, | ||
enumerable: false | ||
@@ -783,3 +794,4 @@ }); | ||
}, | ||
configurable: false, | ||
writable: true, | ||
configurable: true, | ||
enumerable: false | ||
@@ -786,0 +798,0 @@ }); |
@@ -638,9 +638,19 @@ "use strict"; | ||
//fix: [,,,1,2] | ||
var items = node.elements.map(function (element) { | ||
return _this7.createClosure(element); | ||
return element ? _this7.createClosure(element) : element; | ||
}); | ||
return function () { | ||
return items.map(function (item) { | ||
return item(); | ||
}); | ||
var len = items.length; | ||
var result = Array(len); | ||
for (var i = 0; i < len; i++) { | ||
var item = items[i]; | ||
if (item) { | ||
result[i] = item(); | ||
} | ||
} | ||
return result; | ||
}; | ||
@@ -787,3 +797,4 @@ }; | ||
}, | ||
configurable: false, | ||
writable: true, | ||
configurable: true, | ||
enumerable: false | ||
@@ -795,3 +806,4 @@ }); | ||
}, | ||
configurable: false, | ||
writable: true, | ||
configurable: true, | ||
enumerable: false | ||
@@ -798,0 +810,0 @@ }); |
{ | ||
"name": "eval5", | ||
"version": "1.0.1", | ||
"version": "1.0.3", | ||
"description": "A JavaScript interpreter written in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
663046
9641