Changes between Initial Version and Version 2 of Ticket #1602


Ignore:
Timestamp:
03/30/2015 01:33:11 PM (5 years ago)
Author:
trev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1602

    • Property Platform changed from Unknown to Firefox/Firefox Mobile
    • Property Priority changed from Unknown to P4
    • Property Ready set
    • Property Owner set to tschuster
    • Property Type changed from defect to change
  • Ticket #1602 – Description

    initial v2  
    1 We should use the new generator syntax with a star. The only small wrinkle here is that we need to require Firefox 26 as the minimum version for ABP after that. Also needs buildtools/jshydra support, which should be simple. 
     1=== Background === 
     2 
     3Our code currently uses the legacy generator functions: 
     4 
     5{{{ 
     6function foo() 
     7{ 
     8  yield "bar"; 
     9} 
     10}}} 
     11 
     12This syntax is deprecated. 
     13 
     14=== What to change === 
     15 
     16Use the new syntax: 
     17 
     18{{{ 
     19function foo*() 
     20{ 
     21  yield "bar"; 
     22} 
     23}}} 
     24 
     25This is supported starting with Firefox 29, so we'll have to change compatibility info. 
     26 
     27Note that JSHydra will have to be updated as well to support this syntax.