Skip to content

Commit 55c83e7

Browse files
Merge pull request #206 from FStarLang/vdum_js_print
Set custom JS printer function in loader
2 parents 6e60e33 + 84f4c38 commit 55c83e7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

kremlib/js/loader.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,14 @@ function link(imports, modules) {
477477
return fold(i, modules);
478478
}
479479

480+
function setMyPrint(f) {
481+
my_print = f;
482+
return;
483+
}
484+
480485
if (typeof module !== "undefined")
481486
module.exports = {
487+
setMyPrint: setMyPrint,
482488
link: link,
483489
reserve: reserve,
484490
dump: dump,

0 commit comments

Comments
 (0)