Closed Bug 773003 Opened 14 years ago Closed 14 years ago

Validator needs a Spidermonkey upgrade

Categories

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

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kmag, Assigned: basta)

References

Details

(Whiteboard: [ReviewTeam])

Current versions of Firefox support a newer version of JS than the validator, including for-of loops. The validator needs to be updated to support these. At the least, they need to not generate a compile-time error.
Whiteboard: [ReviewTeam]
Assignee: nobody → mattbasta
This has to happen in two parts: The first part is physically upgrading Spidermonkey, which presumably needs to be handled by IT. The second part is adding mechanisms to the validator to recognize the new ES constructs. The first part will make the errors go away. The second part will allow the validator to interpret the new constructs and perform analysis on them. Wil: can you talk to IT about getting this in motion or find out what direction we should go in for this?
Depends on: 773015
The Spidermonkey upgrade doesn't seem to have helped. We're still getting syntax errors for for-of statements on prod: https://addons.mozilla.org/en-US/firefox/files/browse/159639/file/chrome/jsterm.js#L249 Maybe the version they upgraded to is not new enough?
It's likely that the standalone version of Spidermonkey doesn't yet support the same constructs that Firefox supports.
If it's built from mozilla-central, it should. We also might need to add a version flag. The required arguments seem to change more or less at random between Spidermonkey releases, so I'm not sure either way.
Bumping priority. for-of has been showing up in a lot of add-ons lately, and any files that use it don't get validated.
Severity: normal → major
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.