Skip to content

Commit

Permalink
Merge pull request #9 from Jxck/patch-1
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
littledan committed Mar 3, 2019
2 parents 1085db6 + 5acdcd0 commit 146891d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -64,7 +64,7 @@ This works great, and you can think of it as analogous to how built-in classes w

## The problem

Field declarations and private methods are added by the language runtime implicitly, either at the beginning of the constructor (in base classes) or as the last step in `super()` (in subclasses). If we're using `Reflect.construct` to make sure we're always calling out to the original superclass constructor, while keeing the constructor itself non-frozen, how should we allow the subclass to add fields or private methods?
Field declarations and private methods are added by the language runtime implicitly, either at the beginning of the constructor (in base classes) or as the last step in `super()` (in subclasses). If we're using `Reflect.construct` to make sure we're always calling out to the original superclass constructor, while keeping the constructor itself non-frozen, how should we allow the subclass to add fields or private methods?

```js
class C {
Expand Down

0 comments on commit 146891d

Please sign in to comment.