Bug 1007285 - Length property of the (Weak){Map,Set} constructors should be 1; r=jorendorff

This commit is contained in:
Arpad Borsos
2014-05-09 10:00:48 +02:00
parent ec75cb323c
commit 13e96e3f2d
5 changed files with 39 additions and 4 deletions

View File

@@ -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;