style(compiler): changed object-assign to spread (#507)
This commit is contained in:
committed by
Evan You
parent
b87c05159b
commit
812a0626ce
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user