Skip to content

Commit fecd65d

Browse files
committed
Fix #22 - Highlight lexical scoping 'stack' behaviour.
1 parent b16eff8 commit fecd65d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/lexical_scoping.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@
164164
"description": "Precedence of lexical vars from current object",
165165
"expression": "precedence.let({variable: variable}, &a.let({variable: variable}, &b.let({variable: variable}, &c.let({variable: `\"override\"`}, &variable))))",
166166
"result": "fourth"
167+
},
168+
{
169+
"description": "Scopes must be discarded after evaluation",
170+
"expression": "let({root: 'root'}, &root).root",
171+
"result": null
167172
}
168173
]
169174
},

0 commit comments

Comments
 (0)