Fixed global variable leak when using ParallelReportDispatcher
This commit is contained in:
@@ -7161,6 +7161,8 @@ getJasmineRequireObj().NeverSkipPolicy = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
|
getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class ParallelReportDispatcher
|
* @class ParallelReportDispatcher
|
||||||
* @implements Reporter
|
* @implements Reporter
|
||||||
@@ -7179,7 +7181,7 @@ getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
|
|||||||
const ReportDispatcher = deps.ReportDispatcher || j$.ReportDispatcher;
|
const ReportDispatcher = deps.ReportDispatcher || j$.ReportDispatcher;
|
||||||
const QueueRunner = deps.QueueRunner || j$.QueueRunner;
|
const QueueRunner = deps.QueueRunner || j$.QueueRunner;
|
||||||
const globalErrors = deps.globalErrors || new j$.GlobalErrors();
|
const globalErrors = deps.globalErrors || new j$.GlobalErrors();
|
||||||
const dispatcher = ReportDispatcher(
|
const dispatcher = new ReportDispatcher(
|
||||||
j$.reporterEvents,
|
j$.reporterEvents,
|
||||||
function(queueRunnerOptions) {
|
function(queueRunnerOptions) {
|
||||||
queueRunnerOptions = {
|
queueRunnerOptions = {
|
||||||
@@ -7905,6 +7907,8 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().ReportDispatcher = function(j$) {
|
getJasmineRequireObj().ReportDispatcher = function(j$) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
function ReportDispatcher(methods, queueRunnerFactory, onLateError) {
|
function ReportDispatcher(methods, queueRunnerFactory, onLateError) {
|
||||||
const dispatchedMethods = methods || [];
|
const dispatchedMethods = methods || [];
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
|
getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class ParallelReportDispatcher
|
* @class ParallelReportDispatcher
|
||||||
* @implements Reporter
|
* @implements Reporter
|
||||||
@@ -17,7 +19,7 @@ getJasmineRequireObj().ParallelReportDispatcher = function(j$) {
|
|||||||
const ReportDispatcher = deps.ReportDispatcher || j$.ReportDispatcher;
|
const ReportDispatcher = deps.ReportDispatcher || j$.ReportDispatcher;
|
||||||
const QueueRunner = deps.QueueRunner || j$.QueueRunner;
|
const QueueRunner = deps.QueueRunner || j$.QueueRunner;
|
||||||
const globalErrors = deps.globalErrors || new j$.GlobalErrors();
|
const globalErrors = deps.globalErrors || new j$.GlobalErrors();
|
||||||
const dispatcher = ReportDispatcher(
|
const dispatcher = new ReportDispatcher(
|
||||||
j$.reporterEvents,
|
j$.reporterEvents,
|
||||||
function(queueRunnerOptions) {
|
function(queueRunnerOptions) {
|
||||||
queueRunnerOptions = {
|
queueRunnerOptions = {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
getJasmineRequireObj().ReportDispatcher = function(j$) {
|
getJasmineRequireObj().ReportDispatcher = function(j$) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
function ReportDispatcher(methods, queueRunnerFactory, onLateError) {
|
function ReportDispatcher(methods, queueRunnerFactory, onLateError) {
|
||||||
const dispatchedMethods = methods || [];
|
const dispatchedMethods = methods || [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user