Fix "TypeError: not a function" error with an ugly hack ##r2js
Some checks failed
build / linux-wasi (push) Waiting to run
build / linux-wasi-api (push) Waiting to run
build / linux-csnext (push) Waiting to run
build / tarball (push) Waiting to run
build / linux-static (push) Waiting to run
build / linux-acr-rpm-64 (push) Waiting to run
build / linux-acr-deb (amd64) (push) Waiting to run
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Waiting to run
build / linux-acr-deb (i386, multilib) (push) Waiting to run
build / macos-acr (arm64, 13) (push) Waiting to run
build / macos-acr (x86_64, 12) (push) Waiting to run
build / ios (cydia32) (push) Waiting to run
build / ios (true, cydia) (push) Waiting to run
build / android-acr (16, arm) (push) Waiting to run
build / android-acr (aarch64) (push) Waiting to run
build / android-meson (x86_64) (push) Waiting to run
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run
Coverity Scan / latest (push) Has been cancelled

This commit is contained in:
pancake 2024-10-21 19:27:48 +02:00 committed by pancake
parent e3af0aed83
commit 96f56e055f

View File

@ -212,7 +212,7 @@ static const char *const js_repl_qjs = "" \
"\"+e.toString()+\")\":e.toString()}function bigint_to_string(e,r"\
"){let t;return 16===r?(t=e<0?(e=-e,\"-\"):\"\",t+=\"0x\"+e.toString"\
"(16)):t=e.toString(),\"std\"===eval_mode&&(t+=\"n\"),t}function p"\
"rint(e){const r=[];!function e(t){let n,o,i,s,c;var a=typeof "\
"rint(e){return console.log(e);const r=[];!function e(t){let n,o,i,s,c;var a=typeof "\
"t;if(\"object\"==a)if(null===t)write(t);else if(0<=r.indexOf(t)"\
")write(\"[circular]\");else if(has_jscalc&&(t instanceof Fracti"\
"on||t instanceof Complex||t instanceof Mod||t instanceof Poly"\