This example uses native Berry-lang function implemented using
emscripten_fetch()
in synchronous mode.
The code
is exactly equal as for no-Asyncify example. Difference is in compilation option -s ASYNCIFY=1
,
which produces the WASM file 650k bigger.
See the output in browser developer console.
Actual code:
print(httpget('https://httpbin.org/anything'))