1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

super(length, length) => super(length, width);

This commit is contained in:
iNE 2019-02-11 19:02:35 +08:00 committed by GitHub
parent 32c1d1875d
commit 83af4043f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -975,7 +975,7 @@ class Rectangle {
class Square extends Rectangle { class Square extends Rectangle {
constructor(length) { constructor(length) {
super(length, length); super(length, width);
} }
} }