mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
- Emit source locations for native TypeScript and JavaScript debugging across C and LLVM backends. - Preserve macOS debug symbols through linking and cache reuse, with regression coverage and Xcode guidance. Fixes #461 Co-authored-by: timokosonen <325538238+timokosonen@users.noreply.github.com>
8 lines
142 B
TypeScript
8 lines
142 B
TypeScript
export function calculate(count: number): number {
|
|
let value = 0;
|
|
for (let i = 0; i < count; i++) {
|
|
value += i;
|
|
}
|
|
return value;
|
|
}
|