Error: Can’t access lexical declaration

let textBytes = ctypes.uint8_t("hello"); 
let a = new SECItem;
a.type = siBuffer;
a.data = textBytes.address();
a.len = textBytes.length;

I got ReferenceError: can’t access lexical declaration textBytes before initialization.

Any advice?


Source: javascript

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.