From bb0c90cadbb99784681a2acac1fd65ac7f802297 Mon Sep 17 00:00:00 2001 From: Leo K Date: Sat, 5 Jun 2021 22:56:59 +0200 Subject: fix(crypto): change Crypto to interface (#10853) Co-authored-by: Luca Casonato --- runtime/js/99_main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/js') 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), -- cgit v1.2.3