1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

minor V.js fixes

This commit is contained in:
Alexander Medvednikov
2019-10-25 11:24:34 +03:00
parent 97096e4e6c
commit 4e21e9ed44
4 changed files with 27 additions and 18 deletions

View File

@ -2688,7 +2688,7 @@ fn (p mut Parser) string_expr() {
p.gen("'$str'")
}
else if p.is_js {
p.gen('"$f"')
p.gen('tos("$f")')
}
else {
p.gen('tos3("$f")')