OLD | NEW |
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 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 'next', StringIteratorNext | 87 'next', StringIteratorNext |
88 ]); | 88 ]); |
89 %AddNamedProperty(StringIterator.prototype, toStringTagSymbol, | 89 %AddNamedProperty(StringIterator.prototype, toStringTagSymbol, |
90 "String Iterator", READ_ONLY | DONT_ENUM); | 90 "String Iterator", READ_ONLY | DONT_ENUM); |
91 | 91 |
92 utils.SetFunctionName(StringPrototypeIterator, iteratorSymbol); | 92 utils.SetFunctionName(StringPrototypeIterator, iteratorSymbol); |
93 %AddNamedProperty(GlobalString.prototype, iteratorSymbol, | 93 %AddNamedProperty(GlobalString.prototype, iteratorSymbol, |
94 StringPrototypeIterator, DONT_ENUM); | 94 StringPrototypeIterator, DONT_ENUM); |
95 | 95 |
96 }) | 96 }) |
OLD | NEW |