Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit fa12c3c

Browse files
fix(ngRepeat): support cyclic object references in error messages
Now that `minErr` can cope with objects that cannot be normally stringified to JSON, just pass the error arguments straight through without trying to stringify them first. Closes #9838 Closes #10065 Closes #10085
1 parent cf43ccd commit fa12c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/ngRepeat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
366366
});
367367
throw ngRepeatMinErr('dupes',
368368
"Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",
369-
expression, trackById, toJson(value));
369+
expression, trackById, value);
370370
} else {
371371
// new never before seen block
372372
nextBlockOrder[index] = {id: trackById, scope: undefined, clone: undefined};

0 commit comments

Comments
 (0)