Closed
Bug 1015013
Opened 10 years ago
Closed 10 years ago
JSDoc 3 getter/setter parse error in strict mode
Categories
(Firefox OS Graveyard :: Gaia::Build, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S2 (23may)
People
(Reporter: gasolin, Unassigned)
Details
(Whiteboard: [p=1])
Attachments
(1 file)
Refer to http://stackoverflow.com/questions/18861160/jsdoc-3-parse-error-getter-setter-with-the-same-name-in-strict-mode When compiling the code to generate a document with JSDoc 3. If I remove the "user strict";, then it works. Is this a bug in JSDoc, We can write a plugin to remove "user strict"; while running JSDOC, and remove wildcards for each apps http://usejsdoc.org/about-plugins.html
Reporter | ||
Comment 1•10 years ago
|
||
Attachment #8427492 -
Flags: review?(yurenju.mozilla)
Reporter | ||
Comment 2•10 years ago
|
||
[what this patch did]: 1. Add jsdoc plugin that remove the user strict before parsing jsdoc 2. update jsdoc.json that remove wildcards that use the getter/setter
Comment 3•10 years ago
|
||
Comment on attachment 8427492 [details] [review] pull request redirect to github add new line on the end of build/jsdoc/nostrict.js then you get r+.
Attachment #8427492 -
Flags: review?(yurenju.mozilla) → review+
Reporter | ||
Updated•10 years ago
|
Whiteboard: [p=1]
Target Milestone: --- → 2.0 S2 (23may)
Reporter | ||
Comment 4•10 years ago
|
||
fixed and merged https://github.com/mozilla-b2g/gaia/commit/67406b2e184c8e1e22d38ddcc7a771e22229a0ea thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Summary: JSDoc 3 parse error getter/setter with the same name in strict mode → JSDoc 3 getter/setter parse error in strict mode
You need to log in
before you can comment on or make changes to this bug.
Description
•