diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-14 16:22:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-14 16:22:49 -0700 |
commit | 7667ffacc92589a851e4bc5aca3f8aaad289ecb4 (patch) | |
tree | 282f36e5606c8bbdb3f9bc1b79fd5ff610b7dd7b | |
parent | 089cdbee641110ddc78c0ab58fefa0818180d286 (diff) |
implement performance.now more carefully in the shell replay
-rw-r--r-- | tools/reproduceriter_shell.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/reproduceriter_shell.js b/tools/reproduceriter_shell.js index 5cf8aea2..05138797 100644 --- a/tools/reproduceriter_shell.js +++ b/tools/reproduceriter_shell.js @@ -734,10 +734,10 @@ var document = { var alert = function(x) { print(x); }; +var originalDateNow = Date.now; var performance = { now: function() { - // print('performance.now! ' + new Error().stack); - return Date.now(); // XXX XXX XXX + return originalDateNow.call(Date); }, }; function fixPath(path) { @@ -859,5 +859,4 @@ var MozBlobBuilder = function() { return this.data.buffer; // return the buffer as a "blob". XXX We might need to change this if it is not opaque }; }; -} |