mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
- Record CommonJS builtin reads through bracket notation and destructuring, so a native consumer of a patched member is islanded or reported with SC8020. A computed key or rest element reads the whole module and matches any patch of it. - Keep the named-data walk of an island module inside its directory: a symbolic link that leads out of it is not followed, and a link loop ends the walk. - Skip the extension check for import type and export type, which Node erases without resolving the specifier. - Scan TypeScript island modules for the program modules they import, so a stateful module used by both sides is shared instead of copied. - Export the Test262 assertion form of compareArray as assertCompareArray, so the harness no longer declares compareArray twice, and give island tests the bare compareArray as native ones have.