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'm trying to instrument an ES6 module (note I speak of client side JS, not Node.js).
It looks like the initialization of an instrumented file throws an Exception in header.js line 38, because "this" is undefined here. Unlike plain JS modules seem to be very picky about this ...
What is "this" supposed to be in this context?
In a fork I deleted "this." from header.js and with the new jar my test just ran fine.
It may be possible if you add "use strict"; to a file, but I haven't tried that.
The text was updated successfully, but these errors were encountered:
I created PR #294 with some more changes in the .js files but the integration tests fail. I could fix a few failures which were caused by my changes but not all. Currently it fails at "inMemory.js" but I can't find that file.
Any help is appreciated.
Finally I managed to run the integration tests with success ...
It might be better to declare _$jscoverage in header.js instead of touching a couple of places where it is first assigned a value but I don't understand the code good enough to make that decision.
I'm trying to instrument an ES6 module (note I speak of client side JS, not Node.js).
It looks like the initialization of an instrumented file throws an Exception in header.js line 38, because "this" is undefined here. Unlike plain JS modules seem to be very picky about this ...
What is "this" supposed to be in this context?
In a fork I deleted "this." from header.js and with the new jar my test just ran fine.
It may be possible if you add "use strict"; to a file, but I haven't tried that.
The text was updated successfully, but these errors were encountered: