Closed Bug 1283645 Opened 9 years ago Closed 9 years ago

JS breakage in Safari, older Firefox versions (FF < 44): Unexpected use of reserved word 'let'

Categories

(Webtools Graveyard :: DXR, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: erik, Assigned: erik)

References

Details

(Whiteboard: js)

Doing a search in Safari doesn't work and throws JS errors: [Error] SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode. (anonymous function) (dxr.11309fe2.js:240) [Error] SyntaxError: Unexpected use of reserved word 'let' in strict mode (anonymous function) (context_menu.6820aff2.js:33)
this is broken in a lot of browsers, not just Safari: http://caniuse.com/#search=let
Summary: JS breakage in Safari → JS breakage in Safari, older Firefox versions (FF < 44): Unexpected use of reserved word 'let'
Assignee: nobody → erik
Commit pushed to master at https://github.com/mozilla/dxr https://github.com/mozilla/dxr/commit/4f83ae7427a70bb80ffe001c5b8d81573e7ac899 Remove ES6-isms. Fixes bug 1283645. The latest Safari (9.1.1) and pre-44 versions of FF can't handle them, so search was broken.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
See Also: → 1284767
Highlighting lines of code in Safari now broken. JS error unexpected const in non-strict mode.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.