Bug 1007285 - Length property of the (Weak){Map,Set} constructors should be 1; r=jorendorff
This commit is contained in:
@@ -500,7 +500,7 @@ js_InitWeakMapClass(JSContext *cx, HandleObject obj)
|
||||
return nullptr;
|
||||
|
||||
RootedFunction ctor(cx, global->createConstructor(cx, WeakMap_construct,
|
||||
cx->names().WeakMap, 0));
|
||||
cx->names().WeakMap, 1));
|
||||
if (!ctor)
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user