aboutsummaryrefslogtreecommitdiff
path: root/test/test-core.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-04-02 12:43:37 -0400
committerGitHub <noreply@github.com>2021-04-02 12:43:37 -0400
commit28fa3fa795d564135940e8aff52b987a5960f15c (patch)
tree36d36f62c14fd5cef8304539680480d47bc9eff2 /test/test-core.js
parent8179846e381eb0a87bf3bc266abec8f4400565bc (diff)
Move test VM crypto definition (#1584)
Diffstat (limited to 'test/test-core.js')
-rw-r--r--test/test-core.js11
1 files changed, 1 insertions, 10 deletions
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'
]);