Thank you. After turning around for a little while, I found it was because I switched to pas2js fixes_3_0 branch, following https://wiki.freepascal.org/pas2js . I switched to main branch and now the functions are available.