-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9f2cd9
commit ccbb839
Showing
2 changed files
with
108 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
# TODO | ||
|
||
* Prevent injection of class into scope function for its methods. | ||
|
||
* Tests for `super()` in arrow functions: | ||
|
||
```js | ||
class Y extends X { | ||
constructor() { | ||
const callSuper = () => super(); | ||
callSuper(); | ||
} | ||
} | ||
return Y; | ||
``` | ||
|
||
```js | ||
let callSuper; | ||
class Y extends X { | ||
constructor() { | ||
callSuper = () => super(); | ||
} | ||
} | ||
try { new Y() } catch {} | ||
return callSuper; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters