[bug] Illegal customType: xxx 错误
Author: topgame123comCreated Oct 30, 2025Updated Oct 30, 2025
APlayer v1.10.1 af84efb
当用户使用customAudioType自定义解释时, 如果函数定义为 async function, 由于代码使用: "[object Function]" === Object.prototype.toString.call (customAudioTypeFn) 判断是否存在函数, 此处为false导致报错
Illegal customType: xxx
因为 Object.prototype.toString.call (function(){}) 返回值为 "[object Function]" Object.prototype.toString.call (async function(){}) 返回值为 "[object AsyncFunction]"
Source: DIYgod/APlayer