Skip to content

Commit

Permalink
Merge pull request #206 from FStarLang/vdum_js_print
Browse files Browse the repository at this point in the history
Set custom JS printer function in loader
  • Loading branch information
victor-dumitrescu authored Apr 29, 2021
2 parents 6e60e33 + 84f4c38 commit 55c83e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kremlib/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,14 @@ function link(imports, modules) {
return fold(i, modules);
}

function setMyPrint(f) {
my_print = f;
return;
}

if (typeof module !== "undefined")
module.exports = {
setMyPrint: setMyPrint,
link: link,
reserve: reserve,
dump: dump,
Expand Down

0 comments on commit 55c83e7

Please sign in to comment.