Skip to content

Comments

fix: crash when [Symbol.iterator] is declared in a class.#78

Merged
h13i32maru merged 2 commits intoesdoc:masterfrom
hatashiro:iterator
Sep 12, 2015
Merged

fix: crash when [Symbol.iterator] is declared in a class.#78
h13i32maru merged 2 commits intoesdoc:masterfrom
hatashiro:iterator

Conversation

@hatashiro
Copy link
Contributor

Hi,

I've just uploaded the previous PR and I found the issue #73 is somewhat similar to it. However, I cannot be sure if this way is what you would like. Any comment will be welcomed, so that I can modify along with it.

Cheers 👍

@hatashiro
Copy link
Contributor Author

This may conflict with another PR which has just been merged because of CoverageDocTest.js. I'll update soon ⌚

Any comment for the rest of the patch?

@h13i32maru
Copy link
Member

@noraesae Thanks for this PR!
But I want to fix this problem with other approach. Because [...](){} has any expression.

  • [foo](){}
  • [foo.bar.baz](){}
  • [foo + bar](){}
  • [foo()](){}
  • etc...

So, I think that generate JS code from the expression AST using escodegen.

Hyunje Alex Jun added 2 commits September 12, 2015 17:37
#73

Use Escodegen to parse method names using ES6's computed property names.
@hatashiro
Copy link
Contributor Author

Updated PR using the suggested escodegen. Please feel free to comment further!

@h13i32maru
Copy link
Member

Wow! Thanks updated!

h13i32maru added a commit that referenced this pull request Sep 12, 2015
fix: crash when [Symbol.iterator] is declared in a class.
@h13i32maru h13i32maru merged commit 6f62ba0 into esdoc:master Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants