News for hackers. Stuff that matters.
Re:An Object is not a Hash by cousin_it on Tuesday October 09, 2012 @06:05AM (#4630764)

    if (!posts.hasOwnProperty(req.body.slug)) {
      posts[req.body.slug] = new Post(req.body);
      res.send(200);
    }
Maybe I'm missing something, but doesn't that code also happily assign to properties like "constructor", not just "hasOwnProperty"?

There are no comments on this comment yet.