Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 6, 2023
1 parent 20bfbd0 commit 282710a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -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; };
}
```

0 comments on commit 282710a

Please sign in to comment.