Skip to content

Commit 5f95b6a

Browse files
committed
Fix Class setter
1 parent 1fb8435 commit 5f95b6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
235235
return this.length * this.length;
236236
}
237237

238-
set area(value) {
239-
this.area = value;
238+
set length(value) {
239+
this.length = value;
240240
}
241241
}
242242
```
@@ -252,8 +252,8 @@ Each proposal for an ECMAScript feature goes through the following maturity stag
252252
return this.length * this.length;
253253
}
254254
255-
set area(value) {
256-
this.area = value;
255+
set length(value) {
256+
this.length = value;
257257
}
258258
}
259259
```

0 commit comments

Comments
 (0)