mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-11 02:03:59 +08:00
The checker types Promise.prototype as Promise<any>, so an inferred binding of it, a module const or a local, inserted a promise check against the ordinary object and threw a TypeError at initialization. Such bindings, including promise.constructor.prototype, now stay checked-dynamic in TypeScript as they already did in JavaScript, and corpus 6590 covers them.