1// Copyright 2015 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5(function(global, utils) { 6 "use strict"; 7 %CheckIsBootstrapping(); 8 9 var GlobalObject = global.Object; 10 var IteratorPrototype = utils.ImportNow("IteratorPrototype"); 11 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 12 13 // 25.1.2.1 %IteratorPrototype% [ @@iterator ] ( ) 14 function IteratorPrototypeIterator() { 15 return this; 16 } 17 18 utils.SetFunctionName(IteratorPrototypeIterator, iteratorSymbol); 19 %AddNamedProperty(IteratorPrototype, iteratorSymbol, 20 IteratorPrototypeIterator, DONT_ENUM); 21}) 22