improve `test/run-test.js` performance (#2971)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 3 Mar 2018 20:50:00 +0000 (04:50 +0800)
committerGitHub <noreply@github.com>
Sat, 3 Mar 2018 20:50:00 +0000 (04:50 +0800)
commit798fc21530cf15049767af1e38aeae04f81ec5e2
tree421d8ba53c6fc5c79ed090e329d90f4398068d6c
parenta75a046abbc1f93fbb2235c99a1fc1d543faf9e9
improve `test/run-test.js` performance (#2971)

- allow reuse of contextified sandbox
- minimise bottleneck from `vm.createContext()`
test/run-tests.js
test/sandbox.js