-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
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
Does not properly handle object destructuring #326
Comments
Interesting. A mangler bug. I'll take a look. Snippet reproducing the error - function a() {
let foo, bar, baz;
({foo, bar, baz} = {});
return {foo, bar, baz};
} output: function a(){
let b,c,d;
return({ foo: d, bar: c, baz: d } = {}), { foo: b, bar: c, baz: d };
} |
boopathi
added a commit
that referenced
this issue
Dec 22, 2016
kangax
pushed a commit
that referenced
this issue
Jan 30, 2017
boopathi
added a commit
that referenced
this issue
Jan 31, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 2, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 3, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 3, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 12, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 16, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 16, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 16, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
Feb 17, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
vigneshshanmugam
pushed a commit
to vigneshshanmugam/babili
that referenced
this issue
Mar 3, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - babel#326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
May 8, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
May 8, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
May 21, 2017
ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option
boopathi
added a commit
that referenced
this issue
May 22, 2017
* Reuse removed vars in mangler ResetNext identifier only when reuse is true Fix tests - add keepClassName Reuse vars as default I dont know why it works - #326 Extract tracker to a separate file, Add topLevel Option * BFS traverse * Fix scope tracking * Fix tests * Fix mangle blacklist tests * Fix formatting * Remove unnecessary preset tests * Add JSDoc Comments and update Error messages * Remove duplicate tests * Fix Error message
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using:
The following code:
gets converted to the following. You'll notice that both
parts
anderror
arej
.Removing the object destructuring corrects the problem.
This has also happened in other places in the script where there was destructuring.
The text was updated successfully, but these errors were encountered: