azu / azu/babel-plugin-strip-function-call
Incompatable with babili
- Dominant language
- JavaScript
- Stars
- 35
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Crashes when used in conjunction with babili
TypeError: src/SymbolicExecution.js: Property alternate of ConditionalExpression expected node to be of a type ["Expression"] but instead got null
at Object.validate (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-types/lib/definitions/index.js:109:13)
at Object.validate (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-types/lib/index.js:511:9)
at NodePath._replaceWith (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/path/replacement.js:176:7)
at NodePath._remove (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/path/removal.js:58:10)
at NodePath.remove (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/path/removal.js:30:8)
at PluginPass.CallExpression (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-plugin-strip-function-call/lib/babel-plugin-strip-function-call.js:21:26)
at newFn (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/visitors.js:276:21)
at NodePath._call (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/path/context.js:76:18)
at NodePath.call (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/path/context.js:48:17)
at NodePath.visit (/Users/pbai002/ExpoSE/ExpoSE/Analyser/node_modules/babel-traverse/lib/path/context.js:105:12)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the crash when the plugin is used with babili, then inspect src/SymbolicExecution.js and the CallExpression handler in babel-plugin-strip-function-call/lib/babel-plugin-strip-function-call.js shown in the stack trace. The work is done when the same input no longer triggers Babel's ConditionalExpression validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100