Skip to content

Commit 4f76d6f

Browse files
authored
Fix accidental mutation
1 parent 8beb848 commit 4f76d6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/Section 3 -- Type System.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,9 +1740,10 @@ InputFieldDefaultValueHasCycle(field, defaultValue, visitedFields):
17401740
- Return {false}.
17411741
- If {field} is within {visitedFields}:
17421742
- Return {true}.
1743-
- Add {field} to {visitedFields}.
1743+
- Let {nextVisitedFields} be a new set containing {field} and everything from
1744+
{visitedFields}.
17441745
- Return {InputObjectDefaultValueHasCycle(namedFieldType, fieldDefaultValue,
1745-
visitedFields)}.
1746+
nextVisitedFields)}.
17461747

17471748
### Input Object Extensions
17481749

0 commit comments

Comments
 (0)