mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix V.js
This commit is contained in:
parent
425c9ce401
commit
b2f8944b1f
@ -3385,7 +3385,9 @@ fn (p mut Parser) for_st() {
|
||||
})
|
||||
// TODO don't generate if it's not used.
|
||||
// Otherwise it's a C warning + perf.
|
||||
p.genln('bool last = $i == $tmp . len - 1;')
|
||||
if !p.is_js {
|
||||
p.genln('bool last = $i == $tmp . len - 1;')
|
||||
}
|
||||
}
|
||||
else if is_str {
|
||||
typ = 'byte'
|
||||
|
Loading…
Reference in New Issue
Block a user