From 1a66b2dffdb1e2c84a738ed29047d6e907703efb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 10 Sep 2012 10:12:29 -0700 Subject: save Date.now and performance.now in reproduceriter --- tools/reproduceriter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py index 3402192c..e61df744 100755 --- a/tools/reproduceriter.py +++ b/tools/reproduceriter.py @@ -155,16 +155,16 @@ var Recorder = (function() { }; // Date.now, performance.now recorder.dnows = []; - var dnow = Date.now; + recorder.dnow = Date.now; Date.now = function() { - var ret = dnow(); + var ret = recorder.dnow(); recorder.dnows.push(ret); return ret; }; recorder.pnows = []; - var pnow = performance.now; + recorder.pnow = performance.now; performance.now = function() { - var ret = pnow(); + var ret = recorder.pnow(); recorder.pnows.push(ret); return ret; }; -- cgit v1.2.3-18-g5258