summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorLeo K <crowlkats@toaxl.com>2021-06-05 22:56:59 +0200
committerGitHub <noreply@github.com>2021-06-05 22:56:59 +0200
commitbb0c90cadbb99784681a2acac1fd65ac7f802297 (patch)
tree6d5e1f668ee54c3ae6ed5ff63f987499f882a6cf /runtime/js/99_main.js
parent368c784d7f6feff6bb483ca2b02cf2c44ea29c26 (diff)
fix(crypto): change Crypto to interface (#10853)
Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index f98c4973e..d64625993 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -302,7 +302,8 @@ delete Object.prototype.__proto__;
console: util.writable(
new Console((msg, level) => core.print(msg, level > 1)),
),
- crypto: util.readOnly(crypto),
+ crypto: util.readOnly(crypto.crypto),
+ Crypto: util.nonEnumerable(crypto.Crypto),
fetch: util.writable(fetch.fetch),
performance: util.writable(performance.performance),
setInterval: util.writable(timers.setInterval),