Comparing version 0.4.23 to 0.4.24
# buble changelog | ||
## 0.4.24 | ||
* Throw if `let`/`const` is redeclared, or `var` is redeclared with a `let`/`const` (0.4.22 regression) | ||
## 0.4.23 | ||
@@ -4,0 +8,0 @@ |
@@ -1560,3 +1560,3 @@ import { parse } from 'acorn'; | ||
var existingDeclaration = this$1.declarations[ name ]; | ||
if ( existingDeclaration && letConst.test( kind ) && letConst.test( existingDeclaration.kind ) ) { | ||
if ( existingDeclaration && ( letConst.test( kind ) || letConst.test( existingDeclaration.kind ) ) ) { | ||
// TODO warn about double var declarations? | ||
@@ -2009,3 +2009,3 @@ throw new CompileError( node, ("" + name + " is already declared") ); | ||
var version = "0.4.23"; | ||
var version = "0.4.24"; | ||
@@ -2012,0 +2012,0 @@ function target ( target ) { |
{ | ||
"name": "buble", | ||
"version": "0.4.23", | ||
"version": "0.4.24", | ||
"description": "The blazing fast, batteries-included ES2015 compiler", | ||
@@ -5,0 +5,0 @@ "main": "dist/buble.umd.js", |
@@ -27,3 +27,3 @@ import extractNames from './extractNames.js'; | ||
const existingDeclaration = this.declarations[ name ]; | ||
if ( existingDeclaration && letConst.test( kind ) && letConst.test( existingDeclaration.kind ) ) { | ||
if ( existingDeclaration && ( letConst.test( kind ) || letConst.test( existingDeclaration.kind ) ) ) { | ||
// TODO warn about double var declarations? | ||
@@ -30,0 +30,0 @@ throw new CompileError( node, `${name} is already declared` ); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1074009