This commit is contained in:
Nicholas Nethercote 2010-04-11 16:45:50 -07:00
commit fd1e728799
2 changed files with 15 additions and 1 deletions

View File

@ -142,7 +142,7 @@ inline void
JSObject::voidArrayUnused()
{
JS_ASSERT(isArray());
fslots[JSSLOT_ARRAY_COUNT] = JSVAL_VOID;
fslots[JSSLOT_ARRAY_UNUSED] = JSVAL_VOID;
}
inline void

View File

@ -0,0 +1,14 @@
// There's no assertEq() here; the test is just that it doesn't crash.
(function () {
new function () {}
}());
[function () {}]
gc()
for (z = 0; z < 6; ++z) {
x = []
}
for (w in [0]) {
x._ = w
}
gc()