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

Side by Side Diff: src/js/date.js

Issue 1413173003: Move error message makers off js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « src/js/collection-iterator.js ('k') | src/js/generator.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 (function(global, utils) { 7 (function(global, utils) {
8 8
9 "use strict"; 9 "use strict";
10 10
11 %CheckIsBootstrapping(); 11 %CheckIsBootstrapping();
12 12
13 // ------------------------------------------------------------------- 13 // -------------------------------------------------------------------
14 // Imports 14 // Imports
15 15
16 var GlobalDate = global.Date; 16 var GlobalDate = global.Date;
17 var GlobalObject = global.Object; 17 var GlobalObject = global.Object;
18 var InternalArray = utils.InternalArray; 18 var InternalArray = utils.InternalArray;
19 var IsFinite; 19 var IsFinite;
20 var MakeRangeError;
20 var MathAbs; 21 var MathAbs;
21 var MathFloor; 22 var MathFloor;
22 var NaN = %GetRootNaN(); 23 var NaN = %GetRootNaN();
23 24
24 utils.Import(function(from) { 25 utils.Import(function(from) {
25 IsFinite = from.IsFinite; 26 IsFinite = from.IsFinite;
27 MakeRangeError = from.MakeRangeError;
26 MathAbs = from.MathAbs; 28 MathAbs = from.MathAbs;
27 MathFloor = from.MathFloor; 29 MathFloor = from.MathFloor;
28 }); 30 });
29 31
30 // ------------------------------------------------------------------- 32 // -------------------------------------------------------------------
31 33
32 // This file contains date support implemented in JavaScript. 34 // This file contains date support implemented in JavaScript.
33 35
34 var timezone_cache_time = NaN; 36 var timezone_cache_time = NaN;
35 var timezone_cache_timezone; 37 var timezone_cache_timezone;
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 "toUTCString", DateToUTCString, 875 "toUTCString", DateToUTCString,
874 "getYear", DateGetYear, 876 "getYear", DateGetYear,
875 "setYear", DateSetYear, 877 "setYear", DateSetYear,
876 "toISOString", DateToISOString, 878 "toISOString", DateToISOString,
877 "toJSON", DateToJSON 879 "toJSON", DateToJSON
878 ]); 880 ]);
879 881
880 %InstallToContext(["create_date_fun", CreateDate]); 882 %InstallToContext(["create_date_fun", CreateDate]);
881 883
882 }) 884 })
OLDNEW
« no previous file with comments | « src/js/collection-iterator.js ('k') | src/js/generator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698