Skip to content

Commit ba1c8ef

Browse files
committed
fix(traversal): dereference should have an optional Identifier, not String
1 parent 8d48295 commit ba1c8ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/08-traversal-operators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ EvaluateProjection(base, scope):
149149

150150
## Dereference traversal
151151

152-
Dereference : `->` String?
152+
Dereference : `->` Identifier?
153153

154154
EvaluateDereference(base, scope):
155155

@@ -170,8 +170,8 @@ EvaluateDereference(base, scope):
170170
- If {Equal(ref, id)} is {true}:
171171
- Set {result} to {document}.
172172
- Stop the loop.
173-
- If the dereference expression contains a {String}:
174-
- Let {name} be the string value of the {String}.
173+
- If the dereference expression contains a {Identifier}:
174+
- Let {name} be the string value of the {Identifier}.
175175
- If {result} is an object and contains an attribute {name}:
176176
- Return the {value} of the attribute {name} in {result}.
177177
- Otherwise:

0 commit comments

Comments
 (0)