Deep clone args before passing them to reporters

This commit is contained in:
Audrius Jakumavicius
2017-10-07 01:32:39 +02:00
parent f6342ad4fe
commit 1f6c91de7c
4 changed files with 22 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
getJasmineRequireObj().ReportDispatcher = function() {
getJasmineRequireObj().ReportDispatcher = function(j$) {
function ReportDispatcher(methods) {
var dispatchedMethods = methods || [];
@@ -36,7 +36,7 @@ getJasmineRequireObj().ReportDispatcher = function() {
for (var i = 0; i < reporters.length; i++) {
var reporter = reporters[i];
if (reporter[method]) {
reporter[method].apply(reporter, args);
reporter[method].apply(reporter, j$.util.cloneArgs(args));
}
}
}