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

Side by Side Diff: src/collection-iterator.js

Issue 353293003: ES6: Add missing Set.prototype.keys function (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/harmony/collection-iterator.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 7
8 // This file relies on the fact that the following declaration has been made 8 // This file relies on the fact that the following declaration has been made
9 // in runtime.js: 9 // in runtime.js:
10 // var $Set = global.Set; 10 // var $Set = global.Set;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 SetUpSetIterator(); 82 SetUpSetIterator();
83 83
84 84
85 function ExtendSetPrototype() { 85 function ExtendSetPrototype() {
86 %CheckIsBootstrapping(); 86 %CheckIsBootstrapping();
87 87
88 InstallFunctions($Set.prototype, DONT_ENUM, $Array( 88 InstallFunctions($Set.prototype, DONT_ENUM, $Array(
89 'entries', SetEntries, 89 'entries', SetEntries,
90 'keys', SetValues,
90 'values', SetValues 91 'values', SetValues
91 )); 92 ));
92 93
93 %AddProperty($Set.prototype, symbolIterator, SetValues, DONT_ENUM); 94 %AddProperty($Set.prototype, symbolIterator, SetValues, DONT_ENUM);
94 } 95 }
95 96
96 ExtendSetPrototype(); 97 ExtendSetPrototype();
97 98
98 99
99 100
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 InstallFunctions($Map.prototype, DONT_ENUM, $Array( 185 InstallFunctions($Map.prototype, DONT_ENUM, $Array(
185 'entries', MapEntries, 186 'entries', MapEntries,
186 'keys', MapKeys, 187 'keys', MapKeys,
187 'values', MapValues 188 'values', MapValues
188 )); 189 ));
189 190
190 %AddProperty($Map.prototype, symbolIterator, MapEntries, DONT_ENUM); 191 %AddProperty($Map.prototype, symbolIterator, MapEntries, DONT_ENUM);
191 } 192 }
192 193
193 ExtendMapPrototype(); 194 ExtendMapPrototype();
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/harmony/collection-iterator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698