Fix a bug when there is a JS redirection during the run

This commit is contained in:
Gaël Métais
2016-03-23 17:21:26 +02:00
parent 2847e02c5d
commit a00b1a96c7
5 changed files with 5 additions and 5 deletions
@@ -23,7 +23,7 @@ exports.module = function(phantomas) {
phantomas.log('javaScriptBottlenecks: to spy calls to eval() run phantomas with --spy-eval option');
}
phantomas.once('init', function() {
phantomas.on('init', function() {
phantomas.evaluate(function(spyEval) {
(function(phantomas) {
function report(msg, caller, backtrace, metric) {