Comparing version 0.8.1 to 0.8.2
{ | ||
"name": "es6-class", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"homepage": "https://github.com/square/es6-class", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -0,1 +1,9 @@ | ||
## v0.8.2 | ||
* Do not bother calling defineProperties without any descriptors. | ||
## v0.8.1 | ||
* Generate the correct `expression` property for function expressions (escodegen support). | ||
## v0.8.0 | ||
@@ -2,0 +10,0 @@ |
@@ -408,10 +408,12 @@ /* jshint node:true, undef:true, unused:true */ | ||
definitionStatements.push(b.expressionStatement(util.callSharedMethod( | ||
globalScope, | ||
'Object.defineProperties', | ||
[ | ||
object, | ||
b.objectExpression(descriptorProperties) | ||
] | ||
))); | ||
if (descriptors.length) { | ||
definitionStatements.push(b.expressionStatement(util.callSharedMethod( | ||
globalScope, | ||
'Object.defineProperties', | ||
[ | ||
object, | ||
b.objectExpression(descriptorProperties) | ||
] | ||
))); | ||
} | ||
} | ||
@@ -418,0 +420,0 @@ |
{ | ||
"name": "es6-class", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "ES6 classes compiled to ES5.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
895
71968