From 28fa3fa795d564135940e8aff52b987a5960f15c Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 2 Apr 2021 12:43:37 -0400 Subject: Move test VM crypto definition (#1584) --- test/test-core.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'test') diff --git a/test/test-core.js b/test/test-core.js index cf9a5c35..22392359 100644 --- a/test/test-core.js +++ b/test/test-core.js @@ -16,19 +16,10 @@ */ const assert = require('assert'); -const crypto = require('crypto'); const {testMain} = require('../dev/util'); const {VM} = require('../dev/vm'); -const vm = new VM({ - crypto: { - getRandomValues: (array) => { - const buffer = crypto.randomBytes(array.byteLength); - buffer.copy(array); - return array; - } - } -}); +const vm = new VM(); vm.execute([ 'js/core.js' ]); -- cgit v1.2.3