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

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

Issue 100335: Fix http://code.google.com/p/chromium/issues/detail?id=1717... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 // Setup non-enumerable properties of the Date object itself. 1010 // Setup non-enumerable properties of the Date object itself.
1011 InstallFunctions($Date, DONT_ENUM, $Array( 1011 InstallFunctions($Date, DONT_ENUM, $Array(
1012 "UTC", DateUTC, 1012 "UTC", DateUTC,
1013 "parse", DateParse, 1013 "parse", DateParse,
1014 "now", DateNow 1014 "now", DateNow
1015 )); 1015 ));
1016 1016
1017 // Setup non-enumerable constructor property of the Date prototype object. 1017 // Setup non-enumerable constructor property of the Date prototype object.
1018 %SetProperty($Date.prototype, "constructor", $Date, DONT_ENUM); 1018 %SetProperty($Date.prototype, "constructor", $Date, DONT_ENUM);
1019 1019
1020 // Setup non-enumerable functions of the Date prototype object and 1020 // Setup non-enumerable functions of the Date prototype object and set their
1021 // set their names. 1021 // names. Use DONT_DELETE due to
1022 InstallFunctions($Date.prototype, DONT_ENUM, $Array( 1022 // http://code.google.com/p/chromium/issues/detail?id=1717
1023 InstallFunctions($Date.prototype, DONT_ENUM | DONT_DELETE, $Array(
1023 "toString", DateToString, 1024 "toString", DateToString,
1024 "toDateString", DateToDateString, 1025 "toDateString", DateToDateString,
1025 "toTimeString", DateToTimeString, 1026 "toTimeString", DateToTimeString,
1026 "toLocaleString", DateToLocaleString, 1027 "toLocaleString", DateToLocaleString,
1027 "toLocaleDateString", DateToLocaleDateString, 1028 "toLocaleDateString", DateToLocaleDateString,
1028 "toLocaleTimeString", DateToLocaleTimeString, 1029 "toLocaleTimeString", DateToLocaleTimeString,
1029 "valueOf", DateValueOf, 1030 "valueOf", DateValueOf,
1030 "getTime", DateGetTime, 1031 "getTime", DateGetTime,
1031 "getFullYear", DateGetFullYear, 1032 "getFullYear", DateGetFullYear,
1032 "getUTCFullYear", DateGetUTCFullYear, 1033 "getUTCFullYear", DateGetUTCFullYear,
(...skipping 30 matching lines...) Expand all
1063 "toGMTString", DateToGMTString, 1064 "toGMTString", DateToGMTString,
1064 "toUTCString", DateToUTCString, 1065 "toUTCString", DateToUTCString,
1065 "getYear", DateGetYear, 1066 "getYear", DateGetYear,
1066 "setYear", DateSetYear, 1067 "setYear", DateSetYear,
1067 "toISOString", DateToISOString, 1068 "toISOString", DateToISOString,
1068 "toJSON", DateToJSON 1069 "toJSON", DateToJSON
1069 )); 1070 ));
1070 } 1071 }
1071 1072
1072 SetupDate(); 1073 SetupDate();
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/math.js » ('j') | test/mjsunit/undeletable-functions.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698