implement performance.now more carefully in the shell replay
This commit is contained in:
Родитель
089cdbee64
Коммит
7667ffacc9
|
@ -734,10 +734,10 @@ var document = {
|
||||||
var alert = function(x) {
|
var alert = function(x) {
|
||||||
print(x);
|
print(x);
|
||||||
};
|
};
|
||||||
|
var originalDateNow = Date.now;
|
||||||
var performance = {
|
var performance = {
|
||||||
now: function() {
|
now: function() {
|
||||||
// print('performance.now! ' + new Error().stack);
|
return originalDateNow.call(Date);
|
||||||
return Date.now(); // XXX XXX XXX
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
function fixPath(path) {
|
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
|
return this.data.buffer; // return the buffer as a "blob". XXX We might need to change this if it is not opaque
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче