Destructuring object cause error #65

Closed
apolkingg8 opened this Issue Aug 31, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@apolkingg8

It's fine:

import Foo from '../Foo'

//let {Foo1, Foo2, Foo3} = Foo

class Bar {
    yo() {

    }
}

export default Bar

but it's cause error:

import Foo from '../Foo'

let {Foo1, Foo2, Foo3} = Foo

class Bar {
    yo() {

    }
}

export default Bar

error msg:

$ esdoc -c esdoc.json
/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:121
          if (autoPrivate && this.name.charAt(0) === '_') {
                                      ^
TypeError: Cannot read property 'charAt' of undefined
    at Object.<anonymous> (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:121:39)
    at /Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:743:17
    at each (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:126:17)
    at Object.<anonymous> (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:740:7)
    at Object.API.(anonymous function) [as update] (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/node_modules/taffydb/taffy.js:166:18)
    at DocResolver._resolveAccess (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:119:20)
    at DocResolver.resolve (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocResolver.js:51:12)
    at CoverageBuilder.DocBuilder (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/DocBuilder.js:57:42)
    at new CoverageBuilder (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/Builder/CoverageBuilder.js:33:81)
    at publish (/Users/applesw2/.nvm/versions/node/v0.12.2/lib/node_modules/esdoc/out/src/Publisher/publish.js:127:35)
@h13i32maru

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Sep 3, 2015

Member

@apolkingg8 Hi! Thanks for this issue!
This is ESDoc bug 😓 I will try to fix it. Please wait a little.

Member

h13i32maru commented Sep 3, 2015

@apolkingg8 Hi! Thanks for this issue!
This is ESDoc bug 😓 I will try to fix it. Please wait a little.

@apolkingg8

This comment has been minimized.

Show comment
Hide comment
@apolkingg8

apolkingg8 Sep 3, 2015

Thank you! I'll stay tuned for good news 👍

Thank you! I'll stay tuned for good news 👍

@h13i32maru

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Sep 6, 2015

Member

I published ESDoc v0.2.5. Please use it.

Member

h13i32maru commented Sep 6, 2015

I published ESDoc v0.2.5. Please use it.

@h13i32maru h13i32maru closed this Sep 6, 2015

@apolkingg8

This comment has been minimized.

Show comment
Hide comment
@apolkingg8

apolkingg8 Sep 7, 2015

It works like charm! Thanks for this awesome project! 🍺

It works like charm! Thanks for this awesome project! 🍺

@h13i32maru

This comment has been minimized.

Show comment
Hide comment
@h13i32maru

h13i32maru Sep 7, 2015

Member

👍

Member

h13i32maru commented Sep 7, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment