Closed
Bug 1205303
Opened 9 years ago
Closed 7 months ago
Unexpected error during validation
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: firefox, Unassigned)
Details
Attachments
(1 file)
41.91 KB,
application/x-xpinstall
|
Details |
It looks like the validator can't handle ES2015 code. Add-on is attached and tested against Firefox 38 and up.
During the submission of a new add-on at https://addons.mozilla.org/en-US/developers/addon/submit/2
I intend to list this add-on once validated.
Time: 3:50pm in the UK (BST)
Updated•9 years ago
|
Flags: needinfo?(kmaglione+bmo)
Reporter | ||
Comment 1•9 years ago
|
||
I tried removing the ES2015 elements and it still fails with an unknown error and shows the same line numbers. I can't see what's wrong with this bit of code, pasting them here in case it's obvious to someone else.
if (account.isReady()) {
rtm.get('rtm.auth.checkToken', {}, () => {
events.do('token.init', 'index');
});
}
Reporter | ||
Comment 2•9 years ago
|
||
This error is because I have unscoped code despite the entire file being wrapped in a function. I have fixed it by wrapping these few lines of bootstrapping code in a self executing function. Please now consider this bug that the validator should provide useful feedback in this situation instead of failing with an unexpected error. This will save add-on writers time in trying to figure out what the problem is.
Assignee | ||
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
Updated•7 years ago
|
Flags: needinfo?(kmaglione+bmo)
Status: UNCONFIRMED → RESOLVED
Closed: 7 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•