mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
Workaround "move not found" exception in JS when using tables. (#11256)
This commit is contained in:
committed by
Andreas Rumpf
parent
95f8ed0382
commit
6b2ed28d55
@@ -274,7 +274,10 @@ proc enlarge[A, B](t: var Table[A, B]) =
|
||||
var j: Hash = eh and maxHash(t)
|
||||
while isFilled(t.data[j].hcode):
|
||||
j = nextTry(j, maxHash(t))
|
||||
rawInsert(t, t.data, move n[i].key, move n[i].val, eh, j)
|
||||
when defined(js):
|
||||
rawInsert(t, t.data, n[i].key, n[i].val, eh, j)
|
||||
else:
|
||||
rawInsert(t, t.data, move n[i].key, move n[i].val, eh, j)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user