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
it('recognizes destructured assignment to a new name',()=>{expect(findUndefinedIdentifiers(parse(` import Foo from 'foo'; const { bar: scar } = Foo; scar(); `))).toEqual(newSet([]));});
I have limited time right now so any help here would be appreciated!
If my code contains an object destruction with assigning to new constant name:
Then import-js does not recognize this syntax and tries to import the already defined
langForeignID
constant:This destruction syntax is a part of ES2015:
https://www.ecma-international.org/ecma-262/6.0/#sec-destructuring-assignment
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
The text was updated successfully, but these errors were encountered: