Files
scriptc/tests/diagnostics/date-formatters.ts
T
2026-10-19 00:47:00 -05:00

6 lines
226 B
TypeScript

// Unsupported formatters must reach the Date method diagnostic, including
// names inherited from Object.prototype by the compiler's dispatch table.
const date = new Date(0);
date.toLocaleTimeString();
date.toLocaleString();