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 // limitations under the License. | 4 |
| 5 "use strict"; |
5 | 6 |
6 // ECMAScript 402 API implementation. | 7 // ECMAScript 402 API implementation. |
7 | 8 |
8 /** | 9 /** |
9 * Intl object is a single object that has some named properties, | 10 * Intl object is a single object that has some named properties, |
10 * all of which are constructors. | 11 * all of which are constructors. |
11 */ | 12 */ |
12 $Object.defineProperty(global, "Intl", { enumerable: false, value: (function() { | 13 $Object.defineProperty(global, "Intl", { enumerable: false, value: (function() { |
13 | 14 |
14 'use strict'; | |
15 | |
16 var Intl = {}; | 15 var Intl = {}; |
17 | 16 |
18 var undefined = global.undefined; | 17 var undefined = global.undefined; |
19 | 18 |
20 var AVAILABLE_SERVICES = ['collator', | 19 var AVAILABLE_SERVICES = ['collator', |
21 'numberformat', | 20 'numberformat', |
22 'dateformat', | 21 'dateformat', |
23 'breakiterator']; | 22 'breakiterator']; |
24 | 23 |
25 var NORMALIZATION_FORMS = ['NFC', | 24 var NORMALIZATION_FORMS = ['NFC', |
(...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2099 writable: true, | 2098 writable: true, |
2100 configurable: true, | 2099 configurable: true, |
2101 enumerable: false | 2100 enumerable: false |
2102 }); | 2101 }); |
2103 %FunctionSetName($Date.prototype.toLocaleTimeString, 'toLocaleTimeString'); | 2102 %FunctionSetName($Date.prototype.toLocaleTimeString, 'toLocaleTimeString'); |
2104 %FunctionRemovePrototype($Date.prototype.toLocaleTimeString); | 2103 %FunctionRemovePrototype($Date.prototype.toLocaleTimeString); |
2105 %SetNativeFlag($Date.prototype.toLocaleTimeString); | 2104 %SetNativeFlag($Date.prototype.toLocaleTimeString); |
2106 | 2105 |
2107 return Intl; | 2106 return Intl; |
2108 }())}); | 2107 }())}); |
OLD | NEW |