Bug 1153825 - Fix length properties of (Weak){Map,Set} constructors; r=evilpie

This commit is contained in:
Florian Scholz
2015-05-01 12:32:53 +02:00
parent ad41db9bb4
commit 91ff1c8d27
7 changed files with 7 additions and 7 deletions

View File

@@ -646,7 +646,7 @@ InitWeakMapClass(JSContext* cx, HandleObject obj, bool defineMembers)
return nullptr;
RootedFunction ctor(cx, global->createConstructor(cx, WeakMap_construct,
cx->names().WeakMap, 1));
cx->names().WeakMap, 0));
if (!ctor)
return nullptr;