OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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() { |
| 6 |
5 "use strict"; | 7 "use strict"; |
6 | 8 |
7 function HarmonyToStringExtendSymbolPrototype() { | 9 %CheckIsBootstrapping(); |
8 %CheckIsBootstrapping(); | |
9 | 10 |
10 InstallConstants(global.Symbol, [ | 11 var GlobalSymbol = global.Symbol; |
11 // TODO(dslomov, caitp): Move to symbol.js when shipping | |
12 "toStringTag", symbolToStringTag | |
13 ]); | |
14 } | |
15 | 12 |
16 HarmonyToStringExtendSymbolPrototype(); | 13 InstallConstants(GlobalSymbol, [ |
| 14 // TODO(dslomov, caitp): Move to symbol.js when shipping |
| 15 "toStringTag", symbolToStringTag |
| 16 ]); |
| 17 |
| 18 })(); |
OLD | NEW |