Unanswered question

How I use the "forge.all.min.js"?

When I use the js imported

var publicKey = context.variableManager.getValue("VE_publicKey");

var monto = encriptarValor(publicKey,"100");

I have this error: ReferenceError: "forge" is not defined. (Script=Cifrado;Line=7)

-----------------------------
Compilation Errors in Library:
org.mozilla.javascript.EcmaError: ReferenceError: "Uint8Array" is not defined

Pablo A.
Pablo A.

Pablo A.

Level
0
4 / 100
points

Answers

Alexis N.
Alexis N.

Alexis N.

Level
2
1255 / 2000
points
Team

Uint8Array is not supported by the current version of Rhino, the JS engine used by NeoLoad. Upgrading to a more recent version of Rhino is under investigation.

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

For unsupported data types, I've used java in the past to do the work (write the method in an external jar) and called that method from Neoload