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

Unified Diff: src/collection.js

Issue 14165004: Move creation of collection prototypes into JavaScript. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/collection.js
diff --git a/src/collection.js b/src/collection.js
index b1257a31d5e6228fd9acf17d8a57b8dcd1ace342..950c7e73742f8ace234ed4cdb86a81647d6a8632 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -117,6 +117,7 @@ function SetUpSet() {
%CheckIsBootstrapping();
%SetCode($Set, SetConstructor);
+ %FunctionSetPrototype($Set, new $Object());
%SetProperty($Set.prototype, "constructor", $Set, DONT_ENUM);
// Set up the non-enumerable functions on the Set prototype object.
@@ -217,6 +218,7 @@ function SetUpMap() {
%CheckIsBootstrapping();
%SetCode($Map, MapConstructor);
+ %FunctionSetPrototype($Map, new $Object());
%SetProperty($Map.prototype, "constructor", $Map, DONT_ENUM);
// Set up the non-enumerable functions on the Map prototype object.
@@ -299,6 +301,7 @@ function SetUpWeakMap() {
%CheckIsBootstrapping();
%SetCode($WeakMap, WeakMapConstructor);
+ %FunctionSetPrototype($WeakMap, new $Object());
%SetProperty($WeakMap.prototype, "constructor", $WeakMap, DONT_ENUM);
// Set up the non-enumerable functions on the WeakMap prototype object.

Powered by Google App Engine
This is Rietveld 408576698