Closed mingodad closed 2 years ago
After searching a bit I found what seems to solve this issue and it's by adding -s ALLOW_MEMORY_GROWTH=1
to docs/build.sh
emsdk-env emcc -std=c++17 -O3 --bind -o native.js native.cpp -s ALLOW_MEMORY_GROWTH=1
I cannot reproduce it on Chrome on my MacBook Pro which has 16 GB memory. Please the following screen shot. Everything looks ok.
Could you try to make .wasm with -sALLOW_MEMORY_GROWTH
, and to see if it fixed the memory problem on your machine? Once you confirm it, I'll do the same and upload the web app. Thanks for your help.
Yes I did compiled it on my machine before write it here and it solved the problem.
I just updated the playground site. Thanks for your help.
Testing a
pegjs
grammar in the online playground it stops validating after some amount of input onchromium
andfirefox
on Ubuntu 18.04 64bits, if we only use thejavascript.pegjs
till this lineGetToken = "get" !IdentifierPart
then the online playgorund works fine, if we add one or more forward lines the it stop validating and if we remove the extra lines we need to refresh the page to get it working again, using the command linepeglint pegjs.peg javascript.pegjs --ast --op
works with the whole input.The
pegjs
grammar:The
javascript.pegjs
grammar used as input text: