diff --git a/store.js b/store.js index 9405ccb0d0ce..84b0ba45955a 100644 --- a/store.js +++ b/store.js @@ -162,7 +162,7 @@ assign(Store.prototype, { let dirty = false; for (const key in newState) { - if (this._computed[key]) throw new Error(`'${key}' is a read-only property`); + if (this._computed[key]) throw new Error(`'${key}' is a read-only computed property`); if (this._differs(newState[key], oldState[key])) changed[key] = dirty = true; } if (!dirty) return; diff --git a/test/store/index.js b/test/store/index.js index 8d5dd5749cf0..bad93b238214 100644 --- a/test/store/index.js +++ b/test/store/index.js @@ -118,7 +118,7 @@ describe('store', () => { assert.throws(() => { store.set({ bar: 'whatever' }); - }, /'bar' is a read-only property/); + }, /'bar' is a read-only computed property/); }); it('allows multiple dependents to depend on the same computed property', () => {