Skip to content

Commit

Permalink
Try to augment Object.keys without regard to the check for Date.proto…
Browse files Browse the repository at this point in the history
…type.toISOString.
  • Loading branch information
Bram Stein authored and isaacs committed Aug 4, 2011
1 parent a5943e5 commit 1192221
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions registry/app.js
Expand Up @@ -71,12 +71,13 @@ ddoc.shows.requirey = function () {
return d.getTime()
return [d.getTime(), d.toUTCString(), ds, ts, tz]
}
Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }
}

Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }

return { code : 200
, body : toJSON([require("semver").expression.toString(), typeof ("asdf".match),
require("semver").clean("0.2.4-1"),
Expand Down Expand Up @@ -835,12 +836,13 @@ ddoc.shows.package = function (doc, req) {
return d.getTime()
return [d.getTime(), d.toUTCString(), ds, ts, tz]
}
Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }
}

Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }

var semver = require("semver")
, code = 200
, headers = {"Content-Type":"application/json"}
Expand Down Expand Up @@ -976,12 +978,13 @@ ddoc.updates.package = function (doc, req) {
return d.getTime()
return [d.getTime(), d.toUTCString(), ds, ts, tz]
}
Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }
}

Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }

var semver = require("semver")
var valid = require("valid")
function error (reason) {
Expand Down Expand Up @@ -1137,12 +1140,13 @@ ddoc.validate_doc_update = function (newDoc, oldDoc, user) {
return d.getTime()
return [d.getTime(), d.toUTCString(), ds, ts, tz]
}
Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }
}

Object.keys = Object.keys
|| function (o) { var a = []
for (var i in o) a.push(i)
return a }

Array.isArray = Array.isArray
|| function (a) { return a instanceof Array
|| (typeof a === "object" && typeof a.length === "number") }
Expand Down

0 comments on commit 1192221

Please sign in to comment.