We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue originally made by Justin Johansson (justinjohansson)
Bug shows up when transpiling following input code with ES2015 CommonJS module transform plugin.
/* file: bar.js */ export { yy, zz }; var yy = 0; var zz = yy++;
Bug is apparent by visual inspection of code in babel-plugin-transform-es2015-modules-commonjs/src/index.js line 122 in UpdateExpression:
let newPaths = path.replaceWithMultiple(t.sequenceExpression(nodes)); for (const newPath of newPaths) this.requeueInParent(newPath);
replaceWithMultiple is a method which always returns undefined. The following for/in statement will therefore always throw an exception as follows:
babel -d dist src TypeError: src/bar.js: Cannot read property 'Symbol(Symbol.iterator)' of undefined at Object.UpdateExpression
The text was updated successfully, but these errors were encountered:
43e0cfb
Merge pull request #4511 from motiz88/fix-4462
819cde9
Fix UpdateExpression handling in es2015-modules-commonjs, resolve #4462
Fix UpdateExpression handling in es2015-modules-commonjs, resolve bab…
f2e0d70
…el#4462
No branches or pull requests
Bug information
Input code
Bug shows up when transpiling following input code with ES2015 CommonJS module transform plugin.
Description
Bug is apparent by visual inspection of code in babel-plugin-transform-es2015-modules-commonjs/src/index.js line 122 in UpdateExpression:
replaceWithMultiple is a method which always returns undefined. The following for/in statement will therefore always throw an exception as follows:
The text was updated successfully, but these errors were encountered: