style(compiler): changed object-assign to spread (#507)

This commit is contained in:
Gabriel Loiácono
2019-11-28 12:49:39 -03:00
committed by Evan You
parent b87c05159b
commit 812a0626ce
3 changed files with 13 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ describe('compiler: transform', () => {
// across calls
const calls: any[] = []
const plugin: NodeTransform = (node, context) => {
calls.push([node, Object.assign({}, context)])
calls.push([node, { ...context }])
}
transform(ast, {