mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-10-31 23:35:40 +01:00
Merge pull request #130 from phated/phated/arrow-comment
fix: Add workaround for SES that reject arrow strings
This commit is contained in:
commit
0e3fa03291
@ -37,13 +37,15 @@ export default async function wtnsDebug(input, wasmFileName, wtnsFileName, symNa
|
|||||||
if (options.set) {
|
if (options.set) {
|
||||||
if (!sym) sym = await loadSyms(symName);
|
if (!sym) sym = await loadSyms(symName);
|
||||||
wcOps.logSetSignal= function(labelIdx, value) {
|
wcOps.logSetSignal= function(labelIdx, value) {
|
||||||
if (logger) logger.info("SET " + sym.labelIdx2Name[labelIdx] + " <-- " + value.toString());
|
// The line below splits the arrow log into 2 strings to avoid some Secure ECMAScript issues
|
||||||
|
if (logger) logger.info("SET " + sym.labelIdx2Name[labelIdx] + " <" + "-- " + value.toString());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (options.get) {
|
if (options.get) {
|
||||||
if (!sym) sym = await loadSyms(symName);
|
if (!sym) sym = await loadSyms(symName);
|
||||||
wcOps.logGetSignal= function(varIdx, value) {
|
wcOps.logGetSignal= function(varIdx, value) {
|
||||||
if (logger) logger.info("GET " + sym.labelIdx2Name[varIdx] + " --> " + value.toString());
|
// The line below splits the arrow log into 2 strings to avoid some Secure ECMAScript issues
|
||||||
|
if (logger) logger.info("GET " + sym.labelIdx2Name[varIdx] + " --" + "> " + value.toString());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (options.trigger) {
|
if (options.trigger) {
|
||||||
|
Loading…
Reference in New Issue
Block a user