Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

fix(directive-injector): wrong variable name in error thrown. #1397

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/core_dom/directive_injector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class DirectiveInjector implements DirectiveBinder {
dynamic _new(Key k, List<Key> paramKeys, Function fn) {
if (_constructionDepth > MAX_CONSTRUCTION_DEPTH) {
_constructionDepth = NO_CONSTRUCTION;
throw new DiCircularDependencyError(key);
throw new DiCircularDependencyError(k);
}
bool isFirstConstruction = (_constructionDepth++ == NO_CONSTRUCTION);
var oldTag = _TAG_GET.makeCurrent();
Expand Down Expand Up @@ -479,7 +479,7 @@ class ComponentDirectiveInjector extends DirectiveInjector {
// For efficiency we run through the maximum resolving depth and unwind
// instead of setting 'resolving' key per type.
class DiCircularDependencyError extends ResolvingError {
DiCircularDependencyError(key) : super(key);
DiCircularDependencyError(Key key) : super(key);

// strips the cyclical part of the chain.
List<Key> get stripCycle {
Expand Down