Closed Bug 1205303 Opened 9 years ago Closed 7 months ago

Unexpected error during validation

Categories

(addons.mozilla.org Graveyard :: Add-on Validation, defect)

BW-2.0
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: firefox, Unassigned)

Details

Attachments

(1 file)

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)
Flags: needinfo?(kmaglione+bmo)
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'); }); }
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.
Product: addons.mozilla.org → addons.mozilla.org Graveyard
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.

Attachment

General

Creator:
Created:
Updated:
Size: