Skip to content

Commit 3189557

Browse files
authored
Merge pull request #1 from mathiasbynens/patch-1
Clarify README example
2 parents d8d04bf + a88a314 commit 3189557

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ const x = class {
8383
}
8484
```
8585

86+
It’s not guaranteed to be the correct `x` in the above examples, because you could be
87+
accessing an overridden member of a subclass.
88+
8689
Also, with current proposal for private static fields and methods, its very easy to
8790
run into errors at runtime when using `this` in a static method:
8891

0 commit comments

Comments
 (0)