Commit 7ce2f75
authored
add total build time to verbose output, harden dispatchNamedObject (#497)
`chad build -v foo.ts` now appends " in Xms" to the "Compiled: ..." line.
Useful when something feels slow and you want to know without reaching
for the shell's `time`. No behavior change at default verbosity.
The one-line `return null;` added to `MethodCallGenerator.dispatchNamedObject`
after the switch-with-default is a workaround for a native-compiler false
positive in checkMissingReturns: any edit to compileNative's body shifts
AST layout enough to trip it on dispatchNamedObject. The extra trailing
return makes the function immune. Node compiler accepts the original code
fine; this only affects the self-hosted path.
Co-authored-by: cs01 <cs01@users.noreply.github.com>1 parent 726e8f2 commit 7ce2f75
File tree
2 files changed
+3
-1
lines changed- src
- codegen/expressions
2 files changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
433 | 434 | | |
434 | 435 | | |
435 | 436 | | |
| |||
939 | 940 | | |
940 | 941 | | |
941 | 942 | | |
942 | | - | |
| 943 | + | |
943 | 944 | | |
944 | 945 | | |
945 | 946 | | |
| |||
0 commit comments