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
$ cd $(mktemp -d)
$ npm i recast@0.21.0 @babel/types @babel/parser
$ xclip -o >test.js # (to copy the code in the description to test.js)
$ node test.js
!options || !options.bidirectional;
It no longer reproduces as of 0.21.1:
$ npm i recast@0.21.1
$ node test.js
!(options || !options.bidirectional);
From looking through what changed between those versions, I think #1068 is probably the change that fixed it.
When using such code:
Should output:
Reproduced in latest version of
@babel/parser
when used with@babel/core@7.14.2
Fix landed in @putout/recast v1.3.1.
The text was updated successfully, but these errors were encountered: