ghaiklor / icecast-parser

Node.js module for getting and parsing metadata from SHOUTcast/Icecast radio streams
MIT License
70 stars 18 forks source link

Fail with Uncaught TypeError: data.replace(...).matchAll(...)[Symbol.iterator] is not a function #137

Closed afreidz closed 5 years ago

afreidz commented 5 years ago

       Should properly emit metadata from Icecast:
     Uncaught TypeError: data.replace(...).matchAll(...)[Symbol.iterator] is not a function
      at _parseMetadata (src/StreamReader.js:9:850)
      at StreamReader._onMetaData (src/StreamReader.js:9:6744)
      at _processData (src/StreamReader.js:9:3417)
ghaiklor commented 5 years ago

matchAll has support only starting from Node.js 12, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchAll