Skip to content

Commit

Permalink
Check for Date instance in requestTime variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Mar 8, 2012
1 parent 692aae2 commit dabe505
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function checkEnv(env) {
});

assert("requestTime" in env, 'Environment missing required property "requestTime"');
assert(env.requestTime instanceof Date, 'requestTime must be a Date');

// The environment must not contain the properties httpContentType or
// httpContentLength (use contentType and contentLength instead).
Expand Down

0 comments on commit dabe505

Please sign in to comment.