[test] Failing test for returning from a for-loop

This commit is contained in:
Sathya Gunasekaran
2023-04-01 09:22:34 +01:00
parent b19555573f
commit 0cb10446b3
2 changed files with 25 additions and 0 deletions
@@ -0,0 +1,20 @@
## Input
```javascript
function foo(props) {
for (let i = 0; i < 10; i += 1) {
return;
}
}
```
## Error
```
Cannot read properties of undefined (reading 'phis')
```
@@ -0,0 +1,5 @@
function foo(props) {
for (let i = 0; i < 10; i += 1) {
return;
}
}