Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: src/weakmap.js

Issue 7624041: Fix initial prototype of WeakMap function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/weakmap.js
diff --git a/src/weakmap.js b/src/weakmap.js
index 70210b98de2d110b7781284ae20bf954d0c86993..4c61dc65e59ee032dc9b4ed095ad952497c6cc3c 100644
--- a/src/weakmap.js
+++ b/src/weakmap.js
@@ -87,6 +87,9 @@ function SetupWeakMap() {
// Setup the WeakMap prototype object.
%FunctionSetPrototype($WeakMap, new $WeakMap());
+ // Setup the constructor property on the WeakMap prototype object.
Erik Corry 2011/08/30 09:13:01 Setup -> Set up And 3 other places in this file.
Michael Starzinger 2011/08/30 09:34:41 Done.
+ %SetProperty($WeakMap.prototype, "constructor", $WeakMap, DONT_ENUM);
+
// Setup the non-enumerable functions on the WeakMap prototype object.
InstallFunctionsOnHiddenPrototype($WeakMap.prototype, DONT_ENUM, $Array(
"get", WeakMapGet,
« src/bootstrapper.cc ('K') | « src/bootstrapper.cc ('k') | test/mjsunit/harmony/weakmaps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698