Skip to content

Commit

Permalink
Add missing printDebug function to wasm runtime. Bump package version.
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Oct 12, 2024
1 parent 00cff94 commit c141c35
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 c141c35

Please sign in to comment.