aboutsummaryrefslogtreecommitdiff
path: root/tools/reproduceriter.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-14 16:20:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-14 16:20:48 -0700
commit089cdbee641110ddc78c0ab58fefa0818180d286 (patch)
tree65fe26eb04cdb635ecef5e76a763c48eebeb44d0 /tools/reproduceriter.js
parentfcad40c708aa7035040c918d4f873cc594a3b4cf (diff)
refactor reproduceriter
Diffstat (limited to 'tools/reproduceriter.js')
-rw-r--r--tools/reproduceriter.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/reproduceriter.js b/tools/reproduceriter.js
index fab5faf9..715052fb 100644
--- a/tools/reproduceriter.js
+++ b/tools/reproduceriter.js
@@ -145,7 +145,7 @@ var Recorder = (function() {
return recorder.randoms.pop();
} else {
recorder.finish();
- throw 'consuming too many values!';
+ throw 'consuming too many random values!';
}
};
// Date.now, performance.now
@@ -155,17 +155,17 @@ var Recorder = (function() {
return recorder.dnows.pop();
} else {
recorder.finish();
- throw 'consuming too many values!';
+ throw 'consuming too many Date.now values!';
}
};
- var pnow = performance.now || performance.webkitNow || performance.mozNow || performance.oNow || performance.msNow || dnow;
+ var pnow = performance.now || performance.webkitNow || performance.mozNow || performance.oNow || performance.msNow;
recorder.pnow = function() { return pnow.call(performance) };
performance.now = function() {
if (recorder.pnows.length > 0) {
return recorder.pnows.pop();
} else {
recorder.finish();
- throw 'consuming too many values!';
+ throw 'consuming too many performance.now values!';
}
};
// Events