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

This commit is contained in:
Sathya Gunasekaran committed 2023-04-01 09:22:34 +01:00
1 parent b19555573f
commit 0cb10446b3
2 files changed
+25

No files matched your search

@@ -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;
}
}