jsgen: fix slightly incorrect JS (esbuild was broken on master) (fix #23711) (#24676)

This commit is contained in:
Gonzalo Chumillas 2025-06-09 09:50:45 +01:00 committed by GitHub
parent 2604fc186f
commit ee77475dc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ fn (v JS.Map) toString() JS.String
// Hack for "`[]JS.String` is not a struct" when returning arr.length or arr.len
// TODO: Fix []JS.String not a struct error
fn native_str_arr_len(arr []JS.String) int {
len := 0
mut len := 0
#len = arr.length
return len