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
TypeError: unknown: Property id of VariableDeclarator expected node to be of a type ["LVal"] but instead got null
at Object.validate (/usr/local/lib/node_modules/babili/node_modules/babel-types/lib/definitions/index.js:109:13)
at validate (/usr/local/lib/node_modules/babili/node_modules/babel-types/lib/index.js:509:9)
at Object.builder (/usr/local/lib/node_modules/babili/node_modules/babel-types/lib/index.js:470:7)
at VariableDeclaration (/usr/local/lib/node_modules/babili/node_modules/babel-plugin-minify-dead-code-elimination/lib/index.js:935:34)
at NodePath._call (/usr/local/lib/node_modules/babili/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/usr/local/lib/node_modules/babili/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/usr/local/lib/node_modules/babili/node_modules/babel-traverse/lib/path/context.js:105:12)
at TraversalContext.visitQueue (/usr/local/lib/node_modules/babili/node_modules/babel-traverse/lib/context.js:150:16)
at TraversalContext.visitSingle (/usr/local/lib/node_modules/babili/node_modules/babel-traverse/lib/context.js:108:19)
at TraversalContext.visit (/usr/local/lib/node_modules/babili/node_modules/babel-traverse/lib/context.js:192:19)
Edit: Updated with less code to reproduce and added stack trace
The text was updated successfully, but these errors were encountered:
If needed, I can paste the actual code. This is strange, but I'm not sure if it's valuable to open a new issue for that. Any thoughts? Does it make sense to open a separate issue for this?
This code is causing this error:
Here's a link to the repl demonstrating it:
http://babeljs.io/repl/#?babili=true&evaluate=false&lineWrap=false&presets=&targets=&browsers=&builtIns=false&code=function%20test()%20%7B%0A%20%20if%20(false)%20%7B%0A%20%20%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%203%3B%20i%2B%2B)%20%7B%0A%20%20%20%20%20%20var%20something%20%3D%205%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A%0Atest()%3B&experimental=false&loose=false&spec=false&playground=true
Stack trace:
The text was updated successfully, but these errors were encountered: