Bug 844426 - limit to ES5 syntax; get rid of generators, fix tests

Test fixes are due to TextEncoder not supporting US-ASCII on Firefox nightly.