| Summary: | [Tern] Exception processing "ExportNamedDeclaration" node jsdoc | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Michael Rennie <Michael_Rennie> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 10.0 | ||
| Target Milestone: | 12.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
The upstream Tern bug is: https://github.com/ternjs/tern/issues/788 |
Using the following snippet: /** * @param {Object} arg */ export function f(arg) {} The doc_comment plugin will throw and exception from #applyType: TypeError: Cannot read property 'type' of undefined at isFunExpr (http://mrennie-target.orion.eclipse.org:9000/tern/plugin/doc_comment.js:445:41) at applyType (http://mrennie-target.orion.eclipse.org:9000/tern/plugin/doc_comment.js:459:11) at jsdocInterpretComments (http://mrennie-target.orion.eclipse.org:9000/tern/plugin/doc_comment.js:417:19) at interpretComments (http://mrennie-target.orion.eclipse.org:9000/tern/plugin/doc_comment.js:168:5) at walk.simple.ExportNamedDeclaration (http://mrennie-target.orion.eclipse.org:9000/tern/plugin/doc_comment.js:119:11) at c (http://mrennie-target.orion.eclipse.org:9000/acorn/dist/walk.js:40:16) at Object.exports.searchVisitor.walk.make.Statement (http://mrennie-target.orion.eclipse.org:9000/tern/lib/infer.js:1992:7) at c (http://mrennie-target.orion.eclipse.org:9000/acorn/dist/walk.js:39:15) at Object.base.Program.base.BlockStatement (http://mrennie-target.orion.eclipse.org:9000/acorn/dist/walk.js:181:5) at c (http://mrennie-target.orion.eclipse.org:9000/acorn/dist/walk.js:39:15)