From 74b11a6389a887df3fbb7b687b2785a538349c9d Mon Sep 17 00:00:00 2001 From: Dmitry Kurmanov Date: Thu, 27 Sep 2018 19:51:08 +0300 Subject: [PATCH 1/2] Update store.js --- store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store.js b/store.js index 9405ccb0d0..84b0ba4595 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; From 07b721278341fb59117c8ab234f2b5e1c9247fa6 Mon Sep 17 00:00:00 2001 From: Dmitry Kurmanov Date: Thu, 27 Sep 2018 20:00:05 +0300 Subject: [PATCH 2/2] Update index.js --- test/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/store/index.js b/test/store/index.js index 8d5dd5749c..bad93b2382 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', () => {