Since I had to do some refactoring to reduce duplication anyway, this also includes general cleanup to the output, such as replacing obj with either value or wrapper, using arrow functions for our exports, and such.
Ideas welcome on further refactoring to reduce duplication, but I think it's probably easiest to wait until we can stop exporting setup(); once that's true things become simpler.
I've confirmed that this works on jsdom just as well as the current master does. (The current master seems to have problems but I think they are solved by https://github.com/jsdom/jsdom/pull/2884.)
Closes #193.
Since I had to do some refactoring to reduce duplication anyway, this also includes general cleanup to the output, such as replacing
obj
with eithervalue
orwrapper
, using arrow functions for our exports, and such.Ideas welcome on further refactoring to reduce duplication, but I think it's probably easiest to wait until we can stop exporting
setup()
; once that's true things become simpler.On top of #195.