code-red
Advanced tools
Comparing version 0.0.24 to 0.0.25
# code-red changelog | ||
## 0.0.25 | ||
* Fix async/generator functions in object methods ([#18](https://github.com/Rich-Harris/code-red/issues/18)) | ||
## 0.0.24 | ||
@@ -4,0 +8,0 @@ |
@@ -967,3 +967,3 @@ (function (global, factory) { | ||
if (node.method || (node.value.type === 'FunctionExpression' && !node.value.id)) { | ||
if (node.value.type === 'FunctionExpression' && !node.value.id) { | ||
state = { | ||
@@ -978,2 +978,9 @@ ...state, | ||
if (node.value.async) { | ||
chunks.push(c('async ')); | ||
} | ||
if (node.value.generator) { | ||
chunks.push(c('*')); | ||
} | ||
chunks.push( | ||
@@ -980,0 +987,0 @@ ...(node.computed ? [c('['), ...key, c(']')] : key), |
{ | ||
"name": "code-red", | ||
"description": "code-red", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"repository": "Rich-Harris/code-red", | ||
@@ -6,0 +6,0 @@ "main": "dist/code-red.js", |
Sorry, the diff of this file is not supported yet
79400
2778