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 // ECMAScript 402 API implementation. | 5 // ECMAScript 402 API implementation. |
6 | 6 |
7 /** | 7 /** |
8 * Intl object is a single object that has some named properties, | 8 * Intl object is a single object that has some named properties, |
9 * all of which are constructors. | 9 * all of which are constructors. |
10 */ | 10 */ |
11 (function() { | 11 (function(global, shared, exports) { |
12 | 12 |
13 "use strict"; | 13 "use strict"; |
14 | 14 |
15 %CheckIsBootstrapping(); | 15 %CheckIsBootstrapping(); |
16 | 16 |
17 var GlobalBoolean = global.Boolean; | 17 var GlobalBoolean = global.Boolean; |
18 var GlobalDate = global.Date; | 18 var GlobalDate = global.Date; |
19 var GlobalNumber = global.Number; | 19 var GlobalNumber = global.Number; |
20 var GlobalRegExp = global.RegExp; | 20 var GlobalRegExp = global.RegExp; |
21 var GlobalString = global.String; | 21 var GlobalString = global.String; |
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 throw MakeTypeError(kOrdinaryFunctionCalledAsConstructor); | 2051 throw MakeTypeError(kOrdinaryFunctionCalledAsConstructor); |
2052 } | 2052 } |
2053 | 2053 |
2054 var locales = %_Arguments(0); | 2054 var locales = %_Arguments(0); |
2055 var options = %_Arguments(1); | 2055 var options = %_Arguments(1); |
2056 return toLocaleDateTime( | 2056 return toLocaleDateTime( |
2057 this, locales, options, 'time', 'time', 'dateformattime'); | 2057 this, locales, options, 'time', 'time', 'dateformattime'); |
2058 } | 2058 } |
2059 ); | 2059 ); |
2060 | 2060 |
2061 })(); | 2061 }) |
OLD | NEW |