In snd.js where frames ref-struct is of type long, it works on macOS but in Windows it seems that the size of long changed and cause the struct definition to change. In my case the next field samplerate became 0 and channels became 44100, causing a size calculation errors.
Changing long to int64 fixes the problem but not sure if it will cause any other problems or not.