Skip to content

Commit

Permalink
Merge pull request #117 from iden3/fix/addMissingPrintDebug
Browse files Browse the repository at this point in the history
Add missing printDebug function to wasm runtime. Bump package version.
  • Loading branch information
OBrezhniev authored Oct 18, 2024
2 parents 00cff94 + c141c35 commit de29cdc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
3 changes: 3 additions & 0 deletions build/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ async function builder(code, options) {
"memory": memory
},
runtime: {
printDebug : function(value) {
console.log("printDebug:", value);
},
exceptionHandler: function (code) {
let err;
if (code === 1) {
Expand Down
3 changes: 3 additions & 0 deletions js/witness_calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export default async function builder(code, options) {
"memory": memory
},
runtime: {
printDebug : function(value) {
console.log("printDebug:", value);
},
exceptionHandler: function (code) {
let err;
if (code === 1) {
Expand Down
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"eslint": "^8.17.0",
"fastfile": "^0.0.20",
"mocha": "^10.7.3",
"rollup": "^2.36.2",
"rollup": "^2.39.1",
"snarkjs": "^0.7.4"
}
}

0 comments on commit de29cdc

Please sign in to comment.