I am using browserify for the following npm library into a single js file.
const publicKey = await crypto2.readPublicKey(‘key.pub’);
const encrypted = await crypto2.encrypt.rsa(‘the native web’, publicKey);
await is a reserved word error shown in the terminal.
After that, I tried to remove the await keyword, I need to wait more than 2 minutes and it throws the exception below.
TypeError: Object has no member ‘setPrototypeOf’ at <js_file>:17547:30(344)