Socket
Socket
Sign inDemoInstall

es6-spread

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-spread - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

test/examples/inside-function-expression.js

2

bower.json
{
"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);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc