dep.js: Set up `BAD' correctly.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:27:38 +0000 (22:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Jun 2018 21:27:38 +0000 (22:27 +0100)
commitc0644ca04a2ef5920acb9627fe3dc1b627a7cf2b
treeae48c664f679bd188c92ef66d9dc00df118369f3
parent1eef3da3deec71d2bf21b6558c5f3c560819bb94
dep.js: Set up `BAD' correctly.

Two bugs, which sort of cancelled each other out.

  * I failed to invoke `new' when I made `BAD', which meant that `BAD'
    actually ended up set to `undefined'.

  * I didn't set `DEP.val' properly if `value' wasn't passed explicitly,
    so, err, it ended up being `undefined', which is then erroneously
    considered to be equivalent to `BAD'.

Fix this silliness.
dep.js