Error in getActiveAudioDevice()

I’m trying to use getactiveAudioDevice() from lib-jitsi-meet like this:

const activeAudioDevice = await this.jitsi.getActiveAudioDevice()

but I get the following error on the terminal:

ERROR Error: Uncaught (in promise): TypeError: Promise.allSettled is not a function
TypeError: Promise.allSettled is not a function
     at ActiveDeviceDetector.js: 48

My version of NodeJS is v12.13.0

Do you know what it can be?