fix V.js
parent
425c9ce401
commit
b2f8944b1f
|
@ -3385,8 +3385,10 @@ fn (p mut Parser) for_st() {
|
||||||
})
|
})
|
||||||
// TODO don't generate if it's not used.
|
// TODO don't generate if it's not used.
|
||||||
// Otherwise it's a C warning + perf.
|
// Otherwise it's a C warning + perf.
|
||||||
|
if !p.is_js {
|
||||||
p.genln('bool last = $i == $tmp . len - 1;')
|
p.genln('bool last = $i == $tmp . len - 1;')
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if is_str {
|
else if is_str {
|
||||||
typ = 'byte'
|
typ = 'byte'
|
||||||
p.gen_for_str_header(i, tmp, typ, val)
|
p.gen_for_str_header(i, tmp, typ, val)
|
||||||
|
|
Loading…
Reference in New Issue