This changes the Vat code to use SES's new s.makeRequire() helper, so both host and guest code can use things like Nat = require('@agoric/nat') and harden = require('@agoric/harden'). When guest code with these imports is run outside of SES, they get the usual npm versions. When it runs inside SES, it gets corresponding in-realm objects, so we can write unit tests of the individual pieces without having to go through hoops.
This changes the Vat code to use SES's new
s.makeRequire()
helper, so both host and guest code can use things likeNat = require('@agoric/nat')
andharden = require('@agoric/harden')
. When guest code with these imports is run outside of SES, they get the usual npm versions. When it runs inside SES, it gets corresponding in-realm objects, so we can write unit tests of the individual pieces without having to go through hoops.refs #19