Make `RegExp.prototype.flags` more spec-compliant

Note that this still isn’t fully spec-compliant, since it shouldn’t be configurable.
No, sorry - I should have said *also* works in every browser. Obviously yours does as well :-)