Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Oops, no need for getTime() on dates.

  • Loading branch information...
commit 3bb8b1f382e54e3e6812ebca20a767e3578332a9 1 parent a881d8d
@skeeto authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 skewer.js
View
4 skewer.js
@@ -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
@@ -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');
};
Please sign in to comment.
Something went wrong with that request. Please try again.