|
@@ -9,6 +9,7 @@ export class Store {
|
|
constructor (options = {}) {
|
|
constructor (options = {}) {
|
|
assert(Vue, `must call Vue.use(Vuex) before creating a store instance.`)
|
|
assert(Vue, `must call Vue.use(Vuex) before creating a store instance.`)
|
|
assert(typeof Promise !== 'undefined', `vuex requires a Promise polyfill in this browser.`)
|
|
assert(typeof Promise !== 'undefined', `vuex requires a Promise polyfill in this browser.`)
|
|
|
|
+ assert(this instanceof Store, `Store must be called with the new operator.`)
|
|
|
|
|
|
const {
|
|
const {
|
|
plugins = [],
|
|
plugins = [],
|