es6-spread
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "es6-spread", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/square/es6-spread", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -0,3 +1,7 @@ | ||
## v0.0.2 | ||
* Fix spreads with a call context inside function expressions. | ||
## v0.0.1 | ||
* Initial version of project. |
@@ -38,2 +38,6 @@ /* jshint node:true, undef:true, unused:true */ | ||
if (n.BlockStatement.check(scopeBody)) { | ||
scopeBody = scopeBody.body; | ||
} | ||
// var $__0; | ||
@@ -40,0 +44,0 @@ context = uniqueIdentifierForScope(this.scope); |
{ | ||
"name": "es6-spread", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "ES6 spread compiled to ES5.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
/* jshint esnext:true */ | ||
var callCount = 0; | ||
function getArray() { | ||
callCount++; | ||
return Array; | ||
} | ||
assert.deepEqual([1, 2, 3], new Array(...[1, 2, 3])); | ||
// Ensure the expression of the function being initialized is not copied. | ||
assert.deepEqual([1, 2, 3], new (getArray())(...[1, 2, 3])); | ||
assert.equal(callCount, 1); |
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
13185
15
339