mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
These lines were not tree shakable by Closure Compiler because `.toString()` is special cased as a "pure" function eligible to eliminated if it's return value is unused. However `.toString.call` circumvents this and makes Closure Compiler think the function may have side effects. Switching to `.toString()` should be fine here as `process.toString()` in Node outputs `[object process]` so this should be safe. Presumably the original motivation for this roundabout approach was for type safety reasons which no longer apply as `_global` is `any`. PR Close #55412 |
||
|---|---|---|
| .. | ||
| error-rewrite.ts | ||
| events.ts | ||
| fetch.ts | ||
| promise.ts | ||
| queue-microtask.ts | ||
| rollup-error-rewrite.ts | ||
| rollup-fetch.ts | ||
| timers.ts | ||
| to-string.ts | ||
| utils.ts | ||