mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
- Remove C emission, debugging options, and automatic backend fallback. - Complete LLVM lowering and native bootstrap coverage across supported targets. - Link executables and libraries with precompiled C runtime packs, including iOS and Android.
15 lines
566 B
TypeScript
15 lines
566 B
TypeScript
// CB6 builtin-name collision fixture: profile channels may share names with
|
|
// declaration-file ambients without claiming those bindings. isNaN must keep
|
|
// its standard-library lowering; parseInt is unreferenced channel capacity and
|
|
// must not be validated against lib.d.ts's optional-radix signature.
|
|
// Profile channels dispatch indirectly, including names that are C keywords.
|
|
declare function int(x: number): number;
|
|
|
|
export function checkBuiltin(x: number): boolean {
|
|
return isNaN(x);
|
|
}
|
|
|
|
export function callKeyword(x: number): number {
|
|
return int(x);
|
|
}
|