Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove circular reference in Browser #3076

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

cexbrayat
Copy link
Contributor

After migrating the the browser.js file to ES2015, the Browser class has now fields with circular references (like emitter), which breaks the Karma JSON reporters available starting with Karma 2.0.1.

This commit removes the circular dependencies by adding a toJSON() method to the Browser class, which produces a similar result to the browser object before the migration.

Fixes #3075

After migrating the the `browser.js` file to ES2015, the `Browser` class has now fields with circular references (like `emitter`),
which breaks the Karma JSON reporters available starting with Karma 2.0.1.
This commit removes the circular dependencies by adding a `toJSON()` method to the `Browser` class,
which produces a similar result to the browser object before the migration.

Fixes karma-runner#3075
@lusarz
Copy link
Contributor

lusarz commented Jul 11, 2018

Good job, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants