Bug 790338 - Sweep debugger objects in the same group as their debugees r=billm
This commit is contained in:
@@ -247,6 +247,8 @@ WeakMap_set_impl(JSContext *cx, CallArgs args)
|
||||
}
|
||||
}
|
||||
|
||||
JS_ASSERT(key->compartment() == thisObj->compartment());
|
||||
JS_ASSERT_IF(value.isObject(), value.toObject().compartment() == thisObj->compartment());
|
||||
if (!map->put(key, value)) {
|
||||
JS_ReportOutOfMemory(cx);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user