From d2619795cd82a27b0bc4b0aa3367dc2dda6e1b0b Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 15 Feb 2019 12:04:38 +0100 Subject: [PATCH] Error stub require, cleans up webpack warnings --- .../util-crypto/src/schnorrkel/schnorrkel-js/schnorrkel_js.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/util-crypto/src/schnorrkel/schnorrkel-js/schnorrkel_js.js b/packages/util-crypto/src/schnorrkel/schnorrkel-js/schnorrkel_js.js index 5ff432b253..ba651c7aac 100644 --- a/packages/util-crypto/src/schnorrkel/schnorrkel-js/schnorrkel_js.js +++ b/packages/util-crypto/src/schnorrkel/schnorrkel-js/schnorrkel_js.js @@ -230,7 +230,8 @@ module.exports.__wbg_getRandomValues_95cef5eed1acafda = function(arg0, arg1, arg module.exports.__wbg_require_86edd37cfda5f13d = function(arg0, arg1) { let varg0 = getStringFromWasm(arg0, arg1); - return addHeapObject(require(varg0)); + // return addHeapObject(require(varg0)); + throw new Error(`Invalid require from WASM for ${varg0}`); }; module.exports.__wbg_randomFillSync_571502126f344d60 = function(arg0, arg1, arg2) {