Mark S. Miller (2013-07-16T23:41:37.000Z)
domenic at domenicdenicola.com (2013-07-18T16:31:21.357Z)
I like the general idea. But when actually called simply as a function, this would be unpleasant. Understanding that any ES5 behavior will be a compromise to prepare the ground for ES6, I suggest this variant: ```js function MapConstructor() { if (%_IsConstructCall()) { %MapInitialize(this); } else if (this === void 0) { return new $Map(); } else { throw ....; } } ``` I already have a lot of code that simply calls WeakMap() without saying "new". I suspect that others will too by the time they see v8's new built-in WeakMaps.