Fix Testing Framework in the JSOO build
Compare changes
+ 0
− 1
@@ -78,7 +78,6 @@ RUN LIGO_VERSION=$(/ligo/scripts/version.sh) opam exec -- dune build -p ligo --p
ligo.js
doesn't have a working testing framework.
This MR uses a patched version of protocol to let us use it for the testing framework.
Protocol is written with 64-bit environment in mind. Browsers, however, are 32-bit (as far as JSOO is concerned). This MR adapts saturation_repr.ml
to use Zarith's Z.t
so that when compiled to JS, zarith's stubs get linked in and get us 64 bit emulation for integer arithmetic in the browser.
Note: one of the interpreter step invocation passes zero gas as the initial state. I don't know where this is coming from as of now. To workaround this, the gas costs of all instructions are temporarily made free.
Fixes testing framework in ligo.js
dune @fmt
to check).## Changelog
section with #### (if appropriate).