Fixed string concatenation and other bugs in the JS backend. Fixed a small bug in the IRC module.
This commit is contained in:
parent
2359b8b107
commit
6deda5a973
9 changed files with 117 additions and 44 deletions
|
|
@ -228,7 +228,7 @@ proc cmp(x, y: string): int = return cmpStrings(x, y)
|
|||
|
||||
proc eqStrings(a, b: string): bool {.noStackFrame, compilerProc.} =
|
||||
asm """
|
||||
if (`a == `b`) return true;
|
||||
if (`a` == `b`) return true;
|
||||
if ((!`a`) || (!`b`)) return false;
|
||||
var alen = `a`.length;
|
||||
if (alen != `b`.length) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue