angular/packages/common/test
Andrew Kushnir 66e59bc11a refactor(core): make RuntimeError reusable across packages (#44398)
This commit updates the code around the `RuntimeError` class to make it more reusable between packages (currently it's only usable inside the `core` package). Specifically:
- the error formatting logic was updated to handle cases when there is no error message provided
- there is no special Set that contains a set of error codes for which we have guides on angular.io. Instead, this is now encoded into the error code itself (making such codes negative integers). Having a separate Set makes it non-tree-shakable, which we want to avoid.

This change should allow to employ the `RuntimeError` class in other packages to further standardize this subsystem and make the errors thrown by the framework consistent.

As a part of the refactoring, the `common` package code was also updated to follow the same logic as `core`, since the `RuntimeError` class was used there as well.

PR Close #44398
2022-01-06 23:43:18 +00:00
..
directives refactor(core): make RuntimeError reusable across packages (#44398) 2022-01-06 23:43:18 +00:00
i18n ci: remove browserstack configuration (#43881) 2021-10-18 15:00:22 -07:00
location feat(common): add historyGo method to Location service (#38890) 2021-04-06 09:25:58 -07:00
pipes refactor(compiler): delete View Engine components of @angular/compiler (#44368) 2021-12-06 13:12:36 -05:00
BUILD.bazel build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
cookie_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
viewport_scroller_spec.ts test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00