From 752cb252bf90a63c8ba0f977a964bab58562d655 Mon Sep 17 00:00:00 2001 From: Go Date: Thu, 7 Mar 2019 19:32:51 +0900 Subject: [PATCH] fix call stack error in setter --- classes-es6/demo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes-es6/demo.js b/classes-es6/demo.js index 7340dce214..e98aa2c819 100644 --- a/classes-es6/demo.js +++ b/classes-es6/demo.js @@ -77,7 +77,7 @@ class Square extends Polygon { } set area(value) { - this.area = value; + this._area = value; } }