You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing an Atom plugin for running Karma, which currently uses the Atom process to start the Karma server. I believe that Atom runs its plugins in a limited execution environment (I had a similar issue when loading the karma plugin, but found an Atom-specific workaround).
However, I keep getting an Illegal Invocation exception in lib/launchers/capture_timeout.js on line 15, when trying to set a timeout. It appears that the exception is caused by setTimeout being called as a method of the timer object.
Changing the timer definition in lib/server.js to delegate to the setTimeout/clearTimeout functions, rather than pass by reference, eliminates the exception.
Is this a valid use-case for making a change in Karma's code base?
The text was updated successfully, but these errors were encountered:
The main reason why those timers are injected is to be able to easily mock them during testing of Karma itself. If that turns out to be an issue in this scenario this is definitely a bug.
Would you be up to creating a PR?
I am writing an Atom plugin for running Karma, which currently uses the Atom process to start the Karma server. I believe that Atom runs its plugins in a limited execution environment (I had a similar issue when loading the karma plugin, but found an Atom-specific workaround).
However, I keep getting an Illegal Invocation exception in
lib/launchers/capture_timeout.js
on line 15, when trying to set a timeout. It appears that the exception is caused bysetTimeout
being called as a method of thetimer
object.Changing the timer definition in
lib/server.js
to delegate to thesetTimeout/clearTimeout
functions, rather than pass by reference, eliminates the exception.Is this a valid use-case for making a change in Karma's code base?
The text was updated successfully, but these errors were encountered: