Fixed string concatenation and other bugs in the JS backend. Fixed a small bug in the IRC module.

This commit is contained in:
dom96 2011-09-23 21:43:24 +01:00
commit 6deda5a973
9 changed files with 117 additions and 44 deletions

View file

@ -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;