Skip to content

Commit

Permalink
Oops, no need for getTime() on dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeto committed Nov 13, 2012
1 parent a881d8d commit 3bb8b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function skewer() {
callback: request.callback,
strict: request.strict
};
var start = new Date().getTime();
var start = new Date();
try {
var prefix = request.strict ? '"use strict";\n' : "";
var value = (eval, eval)(prefix + request.eval); // global eval
Expand All @@ -30,7 +30,7 @@ function skewer() {
"type": error.type, "message": error.message,
"eval": request.eval};
}
result.time = (new Date().getTime() - start) / 1000;
result.time = (new Date() - start) / 1000;
result = JSON.stringify(result);
$.post(skewer.host + "/skewer/post", result, callback, 'json');
};
Expand Down

0 comments on commit 3bb8b1f

Please sign in to comment.