Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: src/i18n.js

Issue 279543002: Move more builtin files to strict mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/date.js ('k') | src/json.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }())});
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/json.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698