Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(zone.js): use
Object.prototype.toString
directly for impro…
…ved tree shakability 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` circuments 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`.
- Loading branch information