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
{{ message }}
This repository was archived by the owner on May 19, 2018. It is now read-only.
this change introduced in babylon@6.17.2 seems to break Istanbul's ignore next functionality in some situations. See the following code:
Input Code
'use strict'consttest=foo=>{switch(foo){case'ok':
returnconsole.log('this is fine')/* istanbul ignore next */default:
thrownewError('nope')}}test('ok')
Expected Behavior
the comment /* istanbul ignore next */ ignores the default statement (behavior in 6.17.1).
Current Behavior
the comment /* isanbul ignore next */ fails to ignore the default switch statement (behavior in 6.17.2).
Thoughts
I believe the issue is that the comment gets folded up onto the prior line, and then we fail to traverse to the default statement when deciding what to ignore.