-
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
5e3f35b
commit a3145a6
Showing
9 changed files
with
128 additions
and
62 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,16 @@ | ||
# 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 `serialize/parseFunction` | ||
* Deal with duplicate bindings: | ||
* Hoisted sloppy functions | ||
* `for (let x of x)` | ||
* `x => { var x; }` | ||
* 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` |
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.