外觀
禁止使用 then 屬性
then
如果一個物件被定義為 "thenable",一旦它意外地在 await 表達式中使用,可能會導致問題
async function example() { const foo = { unicorn: 1, then() {}, }; const { unicorn } = await foo; console.log("after"); //<- This will never execute }