It is possible and ok for the data to contain `FF`. The assert that we have in `TryGetValue` could get triggered if an unsuccessfull lookup goes through this value. The added code in the test does that.
@@ -86,7 +86,7 @@ public:
break;
}
- Assert(idx != (next[idx] & 127));
+ Assert(next[idx] == NIL || (next[idx] & 127) != idx);
i = next[idx];
@@ -41,6 +41,13 @@ for (let j = 0; j < 127; j++)
{
console.log("fail");
+
+ // just check for asserts when doing lookups
+ for (let i = 0; i < 500; i++) {
+ if (obj1['prop' + i] == "qq") {
+ console.log("hmm");
+ }
console.log("pass");