mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-01 17:41:17 +00:00
php codegen: name mangling bugfix
This commit is contained in:
@@ -192,8 +192,9 @@ proc mangleName(s: PSym; target: TTarget): Rope =
|
||||
x.add("HEX" & toHex(ord(c), 2))
|
||||
inc i
|
||||
result = rope(x)
|
||||
add(result, "_")
|
||||
add(result, rope(s.id))
|
||||
if s.name.s != "this":
|
||||
add(result, "_")
|
||||
add(result, rope(s.id))
|
||||
s.loc.r = result
|
||||
|
||||
proc escapeJSString(s: string): string =
|
||||
|
||||
Reference in New Issue
Block a user