diff --git a/compiler/semfold.nim b/compiler/semfold.nim index ebde9a2be..ca06ea1b6 100644 --- a/compiler/semfold.nim +++ b/compiler/semfold.nim @@ -315,7 +315,6 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode = of mLtStr: result = newIntNodeT(ord(getStr(a) < getStr(b)), n) of mLeStr: result = newIntNodeT(ord(getStr(a) <= getStr(b)), n) of mEqStr: result = newIntNodeT(ord(getStr(a) == getStr(b)), n) - of mEqCString: result = newIntNodeT(ord(getStr(a) == getStr(b)), n) of mLtU, mLtU64: result = newIntNodeT(ord(`<%`(getOrdValue(a), getOrdValue(b))), n) of mLeU, mLeU64: diff --git a/tests/js/testmagic.nim b/tests/js/testmagic.nim index c58496dfd..2c02d24be 100644 --- a/tests/js/testmagic.nim +++ b/tests/js/testmagic.nim @@ -5,6 +5,6 @@ discard """ # This file tests some magic -const foo = cstring("foo") -const bar = cstring("foo") +var foo = cstring("foo") +var bar = cstring("foo") echo(foo == bar)