Revision: 4792
Author:   [email protected]
Date:     Tue Feb 28 15:42:50 2012
Log:      add missing Date methods in es53
http://codereview.appspot.com/5699094

es53.js is missing some UTC Date methods that are in the es5 spec.
this adds them.

in particular, toUTCString is needed by jquery.cookie.js

[email protected]

http://code.google.com/p/google-caja/source/detail?r=4792

Modified:
 /trunk/src/com/google/caja/es53.js

=======================================
--- /trunk/src/com/google/caja/es53.js  Tue Feb 28 15:38:21 2012
+++ /trunk/src/com/google/caja/es53.js  Tue Feb 28 15:42:50 2012
@@ -3912,14 +3912,22 @@
         'getUTCFullYear',
         'getMilliseconds',
         'getTimezoneOffset',
-        'setFullYear',
-        'setMonth',
-        'setDate',
-        'setHours',
-        'setMinutes',
-        'setSeconds',
-        'setMilliseconds',
         'setTime',
+        'setMilliseconds',
+        'setUTCMilliseconds',
+        'setSeconds',
+        'setUTCSeconds',
+        'setMinutes',
+        'setUTCMinutes',
+        'setHours',
+        'setUTCHours',
+        'setDate',
+        'setUTCDate',
+        'setMonth',
+        'setUTCMonth',
+        'setFullYear',
+        'setUTCFullYear',
+        'toUTCString',
         'toISOString',
         'toJSON'
       ];

Reply via email to