dep.js: Fix the way `STATE' is handled.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:45:49 +0000 (22:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:45:49 +0000 (22:45 +0100)
commitd87223741448e0ad851949aafce5bd0441b8b9ab
tree2ef1acdcf598dee25f253a2e2dcdaff4a9f6346d
parentc0644ca04a2ef5920acb9627fe3dc1b627a7cf2b
dep.js: Fix the way `STATE' is handled.

Use the correct global `STATE' variable throughout, rather than
sometimes using a per-object `state' slot; restore it properly after
changing it; and actually set the `frozen' state in `with_frozen'.

How did this ever work?
dep.js