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
Per istanbuljs/nyc#1002 the instrumenter generates two pieces of code that are unfriendly to ts-node/register. One is easy to fix, coverageData.hash = hash; should not be set separately but should be included in the declaration of coverageData.
The second issue with new Function is more difficult. See b12a07e for source of var Function = function () {}.constructor;. I'm not sure if this can be fixed.
The text was updated successfully, but these errors were encountered:
ts-node gets angry when coverageData.hash is set after coverageData is
declared, add it to the initial object instead of setting it separately.
Also only output `Function` if a replacement is found in scope.
Fixes#336
Per istanbuljs/nyc#1002 the instrumenter generates two pieces of code that are unfriendly to ts-node/register. One is easy to fix,
coverageData.hash = hash;
should not be set separately but should be included in the declaration ofcoverageData
.The second issue with
new Function
is more difficult. See b12a07e for source ofvar Function = function () {}.constructor;
. I'm not sure if this can be fixed.The text was updated successfully, but these errors were encountered: