angular-cn/packages/router/test
Zaven Muradyan 89f64e58c3 fix(router): avoid freezing queryParams in-place (#22663)
The recognizer code used to call Object.freeze() on queryParams before
using them to construct ActivatedRoutes, with the intent being to help
avoid common invalid usage. Unfortunately, Object.freeze() works
in-place, so this was also freezing the queryParams on the actual
UrlTree object, making it more difficult to manipulate UrlTrees in
things like UrlHandlingStrategy.

This change simply shallow-copies the queryParams before freezing them.

Fixes #22617

PR Close #22663
2018-05-10 07:54:11 -07:00
..
utils build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00
BUILD.bazel build: add missing dependencies on @rxjs//operators needed for rxjs@6.0.0-beta.4 (#23084) 2018-03-30 13:07:03 -07:00
apply_redirects.spec.ts feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
bootstrap.spec.ts build(router): enable bazel tests for router (#21053) 2017-12-22 13:10:51 -08:00
config.spec.ts refactor(router): compile router cleanly with TypeScript 2.4 (#18465) 2017-08-02 17:32:02 -07:00
create_router_state.spec.ts fix(router): cache route handle if found (#22475) 2018-04-23 13:35:59 -07:00
create_url_tree.spec.ts feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
helpers.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00
integration.spec.ts feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
recognize.spec.ts fix(router): avoid freezing queryParams in-place (#22663) 2018-05-10 07:54:11 -07:00
regression_integration.spec.ts fix(router): RouterLinkActive should update its state right after checking the children (#19449) 2017-10-18 11:17:55 -07:00
router.spec.ts fix(router): don't mutate route configs (#22358) 2018-02-22 13:35:38 -08:00
router_preloader.spec.ts fix(router): don't mutate route configs (#22358) 2018-02-22 13:35:38 -08:00
router_state.spec.ts feat(core): upgrade rxjs to 6.0.0-alpha.4 (#22573) 2018-03-19 21:51:51 -07:00
shared.spec.ts style: typos fixed - https://github.com/vlajos/misspell-fixer (#22975) 2018-03-27 14:51:53 -04:00
spy_ng_module_factory_loader.spec.ts build: add bazel test rules for remainder of packages (#21053) 2017-12-22 13:10:51 -08:00
url_serializer.spec.ts fix(router): correct the segment parsing so it won't break on ampersand (#23684) 2018-05-10 07:53:53 -07:00
url_tree.spec.ts style: typos fixed - https://github.com/vlajos/misspell-fixer (#22975) 2018-03-27 14:51:53 -04:00