Comparing version 0.6.4 to 0.6.5
# buble changelog | ||
## 0.6.5 | ||
* Fix `super()` call in subclass expression ([#32](https://gitlab.com/Rich-Harris/buble/issues/32)) | ||
* Less defensive template string parenthesising ([!9](https://gitlab.com/Rich-Harris/buble/merge_requests/9)) | ||
## 0.6.4 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "buble", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "The blazing fast, batteries-included ES2015 compiler", | ||
@@ -5,0 +5,0 @@ "main": "dist/buble.umd.js", |
@@ -1,2 +0,1 @@ | ||
# Bublé | ||
@@ -17,3 +16,3 @@ | ||
Unlike Babel, 100% spec compliance isn't an over-riding goal – for example it won't add runtime checks to ensure that you're not instantiating classes without `new`. (Complete spec compliance is impossible anyway, as some ES2015 features can't be transpiled.) You'll also need to bring your own polyfill (e.g. [es6-shim](https://github.com/es-shims/es6-shim)). You have been warned! | ||
Unlike Babel, 100% spec compliance isn't an over-riding goal – for example it won't add runtime checks to ensure that you're not instantiating classes without `new`. (Complete spec compliance is impossible anyway, as some ES2015 features can't be transpiled.) You'll also need to bring your own polyfill (e.g. [es6-shim](https://github.com/es-shims/es6-shim)). **You have been warned!** | ||
@@ -20,0 +19,0 @@ |
@@ -11,3 +11,3 @@ import Node from '../Node.js'; | ||
const parentClass = this.findNearest( 'ClassBody' ).parent; | ||
this.superClassName = parentClass.superClass && parentClass.superClass.name; | ||
this.superClassName = parentClass.superClass && (parentClass.superClass.name || 'superclass'); | ||
@@ -14,0 +14,0 @@ if ( !this.superClassName ) throw new CompileError( this, 'super used in base class' ); |
@@ -30,3 +30,4 @@ import Node from '../Node.js'; | ||
const parenthesise = this.parent.type !== 'AssignmentExpression' && | ||
const parenthesise = ( this.quasis.length !== 1 || this.expressions.length !== 0 ) && | ||
this.parent.type !== 'AssignmentExpression' && | ||
this.parent.type !== 'VariableDeclarator' && | ||
@@ -33,0 +34,0 @@ ( this.parent.type !== 'BinaryExpression' || this.parent.operator !== '+' ); |
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 too big to display
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
1203279
10910
94