add initProps to single call expression in computed property names - fixes #378
This commit is contained in:
@@ -80,7 +80,7 @@ exports.ObjectExpression = function (node, parent, file, scope) {
|
||||
var first = body[0].expression;
|
||||
|
||||
if (t.isCallExpression(first)) {
|
||||
first.arguments[0] = t.objectExpression([]);
|
||||
first.arguments[0] = t.objectExpression(initProps);
|
||||
return first;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user