Spread operator breaks when inside object with a key set by []
I'm leaning Vue 2 with Vuex and I found a bug that causes the spread notation to not be usable if it is inside of an object with a key set by []
.
import * as types from '../mutation-types'
export default {
// works, but only when no spread operator is being used below
// [types.UPDATE_WORKING_SCREEN] (state, payload) {
// works
'app/UPDATE_WORKING_SCREEN' (state, payload) {
let abc = {
...{abc: '123'},
...{def:'1245'}
}
},
}