📅  最后修改于: 2022-03-11 15:01:17.395000             🧑  作者: Mango
let promise = fnThatYouWannaCheck();
if(promise && typeof promise.then === 'function'
&& promise[Symbol.toStringTag] === 'Promise')
{
// is compliant native promise implementation
}
else
{
throw new Error('async function expected');
}