bug 936068 - fix packing with -o to work in Fx26

very simple change to use old mozilla-style generator functions
Merge pull request #1290 from zombie/936068-es6-generators

bug 936068: Use old-style generators to work in current Firefox release. r=Mossop