angular-cn/packages/core/test/render3
JoostK a9543457ef fix(ivy): prevent invalid forward references in setClassMetadata call (#27561)
In Ivy, a pure call to `setClassMetadata` is inserted to retain the
information that would otherwise be lost while eliding the Angular
decorators. In the past, the Angular constructor decorators were
wrapped inside of an anonymous function which was only evaluated once
`ReflectionCapabilities` was requested for such metadata. This approach
prevents forward references from inside the constructor parameter
decorators from being evaluated before they are available.

In the `setClassMetadata` call, the constructor parameters were not wrapped
within an anonymous function, such that forward references were evaluated
too early, causing runtime errors.

This commit changes the `setClassMetadata` call to pass the constructor
parameter decorators inside of an anonymous function again, such that
forward references are not resolved until requested by
`ReflectionCapabilities`, therefore avoiding the early reads of forward refs.

PR Close #27561
2018-12-14 10:24:16 -08:00
..
ivy feat(ivy): Forward refs now supported (#27439) 2018-12-05 10:41:24 -08:00
jit fix(core): Remove static dependency from @angular/core to @angular/compiler (#26734) 2018-10-31 14:15:06 -04:00
styling fix(ivy): define correct SVG namespace (FW-757) (#27529) 2018-12-07 11:53:52 -08:00
BUILD.bazel ci(ivy): packages/core/test/render3 now passes with ivy aot (#27278) 2018-11-27 10:30:58 -08:00
Inherit_definition_feature_spec.ts feat(ivy): introduce "allocHostVars" instruction as a replacement for "hostVars" field (FW-692) (#27299) 2018-11-30 14:03:12 -08:00
basic_perf.ts refactor(ivy): generate vars in component defs (#25562) 2018-08-20 11:08:10 -07:00
change_detection_spec.ts fix(ivy): make ViewRef.detectChanges work with embedded views (FW-749) (#27521) 2018-12-10 14:20:22 -08:00
common_integration_spec.ts refactor(ivy): treate LView as the primary global state (#27282) 2018-11-29 21:26:15 -08:00
common_with_def.ts fix(ivy): objects like ElementRef should not use a special injection fn (#26064) 2018-09-25 12:51:29 -07:00
component_ref_spec.ts fix(ivy): align NgModuleRef implementation between Ivy and ViewEngine (#27482) 2018-12-06 13:35:08 -08:00
component_spec.ts fix(ivy): avoid destroy renderer method invocation for child views (#27592) 2018-12-12 13:04:09 -08:00
content_spec.ts test(ivy): add testing utility to replace loadDirective (#26316) 2018-10-09 16:46:00 -07:00
control_flow_spec.ts fix(ivy): TestBed.get(Compiler) throws "Error: Runtime compiler is not loaded" (#27223) 2018-11-27 13:42:23 -08:00
di_spec.ts feat(ivy): introduce "allocHostVars" instruction as a replacement for "hostVars" field (FW-692) (#27299) 2018-11-30 14:03:12 -08:00
directive_spec.ts fix(ivy): register to directive outputs on ng-template / ng-container (#25698) 2018-08-30 21:22:01 -07:00
discovery_utils_spec.ts fix(ivy): Implement remaining methods for DebugNode (#27387) 2018-12-04 19:58:25 -08:00
domino.d.ts feat(core): Moving Renderer3 into @angular/core (#20855) 2017-12-21 21:40:58 -08:00
exports_spec.ts fix(ivy): create LViewData from blueprint (#25587) 2018-08-22 15:58:42 -04:00
global_utils_spec.ts fix(ivy): Implement remaining methods for DebugNode (#27387) 2018-12-04 19:58:25 -08:00
host_binding_spec.ts fix(ivy): host bindings should work if input has same name (#27589) 2018-12-11 11:27:08 -08:00
i18n_spec.ts refactor(ivy): treate LView as the primary global state (#27282) 2018-11-29 21:26:15 -08:00
imported_renderer2.ts refactor(ivy): misc cleanup (#25369) 2018-08-14 11:58:47 -07:00
instructions_spec.ts refactor(ivy): remove LNode (#26426) 2018-10-15 11:20:32 -07:00
integration_spec.ts fix(ivy): avoid destroy renderer method invocation for child views (#27592) 2018-12-12 13:04:09 -08:00
jit_environment_spec.ts fix(ivy): remove metadata from *Def and introduce *DefWithMeta types (#26203) 2018-10-04 10:11:17 -07:00
lifecycle_spec.ts fix(ivy): dynamically created components should run init hooks (#26864) 2018-11-01 13:44:10 -07:00
listeners_spec.ts refactor(ivy): treate LView as the primary global state (#27282) 2018-11-29 21:26:15 -08:00
load_domino.ts fix(core): Remove static dependency from @angular/core to @angular/compiler (#26734) 2018-10-31 14:15:06 -04:00
metadata_spec.ts fix(ivy): prevent invalid forward references in setClassMetadata call (#27561) 2018-12-14 10:24:16 -08:00
ng_on_changes_feature_spec.ts feat(ivy): support providers and viewProviders (#25803) 2018-10-25 12:58:40 -04:00
node_selector_matcher_spec.ts refactor(ivy): treate LView as the primary global state (#27282) 2018-11-29 21:26:15 -08:00
outputs_spec.ts refactor(ivy): generate vars in component defs (#25562) 2018-08-20 11:08:10 -07:00
perfCounter_spec.ts perf(ivy): add performance counters in ngDevMode (#23385) 2018-05-01 10:27:40 -07:00
pipe_spec.ts feat(ivy): support WrappedValue in pipes (FW-726) (#27409) 2018-12-04 19:59:01 -08:00
properties_spec.ts fix(ivy): host bindings should work on nodes with providers (#26771) 2018-10-26 15:49:30 -04:00
providers_spec.ts fix(ivy): consider providers for view/content queries (#27156) 2018-11-27 10:16:57 -08:00
pure_function_spec.ts test(ivy): add testing utility to replace loadDirective (#26316) 2018-10-09 16:46:00 -07:00
query_list_spec.ts feat(ivy): implement ViewContainerRef.remove (#24221) 2018-06-05 13:33:40 -07:00
query_spec.ts refactor(ivy): treate LView as the primary global state (#27282) 2018-11-29 21:26:15 -08:00
render_util.ts fix(ivy): avoid destroy renderer method invocation for child views (#27592) 2018-12-12 13:04:09 -08:00
renderer_factory_spec.ts feat(ivy): bridge component styles into the component renderer (#25255) 2018-08-23 16:51:15 -04:00
template_ref_spec.ts fix(ivy): implement rootNodes getter on ViewRef (#27095) 2018-11-14 12:28:03 -08:00
testing_spec.ts refactor(core): remove withBody from public testing API (#25171) 2018-07-31 15:09:32 -07:00
util_spec.ts refactor(ivy): treate LView as the primary global state (#27282) 2018-11-29 21:26:15 -08:00
view_container_ref_spec.ts fix(ivy): attempting to remove detached view on destroy (#27585) 2018-12-14 10:21:23 -08:00