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

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

Issue 1413173003: Move error message makers off js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « src/js/collection.js ('k') | src/js/date.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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // -------------------------------------------------------------------
12 // Imports
13
11 var GlobalMap = global.Map; 14 var GlobalMap = global.Map;
12 var GlobalSet = global.Set; 15 var GlobalSet = global.Set;
13 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 16 var iteratorSymbol = utils.ImportNow("iterator_symbol");
17 var MakeTypeError;
14 var MapIterator = utils.ImportNow("MapIterator"); 18 var MapIterator = utils.ImportNow("MapIterator");
15 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); 19 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
16 var SetIterator = utils.ImportNow("SetIterator"); 20 var SetIterator = utils.ImportNow("SetIterator");
17 21
22 utils.Import(function(from) {
23 MakeTypeError = from.MakeTypeError;
24 });
25
18 // ------------------------------------------------------------------- 26 // -------------------------------------------------------------------
19 27
20 function SetIteratorConstructor(set, kind) { 28 function SetIteratorConstructor(set, kind) {
21 %SetIteratorInitialize(this, set, kind); 29 %SetIteratorInitialize(this, set, kind);
22 } 30 }
23 31
24 32
25 function SetIteratorNextJS() { 33 function SetIteratorNextJS() {
26 if (!IS_SET_ITERATOR(this)) { 34 if (!IS_SET_ITERATOR(this)) {
27 throw MakeTypeError(kIncompatibleMethodReceiver, 35 throw MakeTypeError(kIncompatibleMethodReceiver,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Exports 174 // Exports
167 175
168 utils.Export(function(to) { 176 utils.Export(function(to) {
169 to.MapEntries = MapEntries; 177 to.MapEntries = MapEntries;
170 to.MapIteratorNext = MapIteratorNextJS; 178 to.MapIteratorNext = MapIteratorNextJS;
171 to.SetIteratorNext = SetIteratorNextJS; 179 to.SetIteratorNext = SetIteratorNextJS;
172 to.SetValues = SetValues; 180 to.SetValues = SetValues;
173 }); 181 });
174 182
175 }) 183 })
OLDNEW
« no previous file with comments | « src/js/collection.js ('k') | src/js/date.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698