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
functionfoo(arg){const{ y }=arg,{ z, x =null}=y;returnz ? z : null;}
Output
TypeError: test3.js: Cannot read property 'end' of null
at _evaluate (C:\Users\John\Documents\GitHub\babili\packages\babili\node_modules\babel-traverse\lib\path\evaluation.js:159:57)
at evaluate (C:\Users\John\Documents\GitHub\babili\packages\babili\node_modules\babel-traverse\lib\path\evaluation.js:65:17)
...
Input
Output
REPL
The following version does not produce an exception but generates incorrect output:
Input
Output
REPL
Note: removing
, x = null
produces correct output. Alternatively returningx + z
produces correct output (REPL)The text was updated successfully, but these errors were encountered: