Warning patrol. No bug, r=themaid

This commit is contained in:
Jeff Walden
2012-02-22 14:48:55 -08:00
parent dc7e798a34
commit 081bcb2dd4

View File

@@ -318,7 +318,7 @@ WeakMap_finalize(JSContext *cx, JSObject *obj)
map->check();
#ifdef DEBUG
map->~ObjectValueMap();
memset(map, 0xdc, sizeof(ObjectValueMap));
memset(static_cast<void *>(map), 0xdc, sizeof(*map));
cx->free_(map);
#else
cx->delete_(map);