-
Notifications
You must be signed in to change notification settings - Fork 0
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
d065015
commit 1cb7c0b
Showing
11 changed files
with
155 additions
and
72 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# TODO | ||
|
||
* Handle setting `binding.isFrozenName` on `this` better. Better to set it, but just not to delete internal var trails. | ||
* No point setting `isFrozenName` on external vars passed to serializer? (as it depends entirely on `containsEval` anyway) | ||
* Right now, it is pointless, but in future when scope tree is built dynamically, it would allow | ||
pulling vars which aren't accessible by `eval()` up to a higher level in the tree so they can be renamed. | ||
* `serialize/blocks` + `serialize/functions` + `serialize/parseFunction` could have changes stripped out if so. | ||
* TODO comment in `visitors/function` | ||
* TODO comment in `visitors/assignee` | ||
* TODO comment in `serialize/parseFunction` | ||
* Deal with duplicate bindings: | ||
* Hoisted sloppy functions - actually no need, because `isFunction` means both are frozen anyway | ||
* `for (let x of (() => x, [])) eval('x');` - done, but write test | ||
* `function (x, _ = eval('x')) { var x; return x; }` - done (apart from `arguments`), but write test | ||
* Tests | ||
* Tests for binding in higher scope which is shadowed still not being renamed | ||
e.g. `() => { let x = 1; { let x; eval('typeof a !== "undefined" && a = 2'); } return x; }` - make sure param `x` not renamed to `a` | ||
* Make sure this includes vars which are illegal to access inside `eval()` if `eval()` is strict mode. |
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
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
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
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
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
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
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
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
Oops, something went wrong.