1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-26 20:28:49 +08:00

Add Date.toUTCString

This commit is contained in:
Robert Krimen
2012-10-07 23:05:15 -07:00
parent dc0406aeb7
commit ff5fc43690
3 changed files with 24 additions and 15 deletions

View File

@@ -298,6 +298,7 @@ func newContext() *_runtime {
builtinNewDate,
self.Global.DatePrototype,
"toString", 0, builtinDate_toString,
"toUTCString", 0, builtinDate_toUTCString,
"valueOf", 0, func(call FunctionCall) Value {
date := dateObjectOf(call.thisObject())
if date.isNaN {