From fa227a75ae1210f6239c7b88553467d8898e1986 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Fri, 24 Nov 2023 18:58:48 +0000 Subject: [PATCH] TODO --- TODO.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 00000000..cfd2fcf1 --- /dev/null +++ b/TODO.md @@ -0,0 +1,19 @@ +# TODO + +* Tests +* Test for `"use strict"` directive in function not being moved up to outside `with ()` +* Test for multiple `with ()`s between var and its binding +* Test for `with ()` with no `{}` statement block +* Tests for `with` in `eval()` +* Tests for `this` where implicitly used by `super()` and `super` + +* Raise Github issue for interaction with const violations + +e.g. How to deal with this? Whether `x = 2` is a const violation depends on whether `obj` has a property called `x` or not. + +```js +const x = 1; +with (obj) { + module.exports = () => { x = 2; }; +} +```