The ES6 spec states that RegExp.prototype should not be an instance of RegExp: https://tc39.github.io/ecma262/#sec-properties-of-the-regexp-prototype-object "The RegExp prototype object is an ordinary object. It is not a RegExp instance and does not have a [[RegExpMatcher]] internal slot or any of the other internal slots of RegExp instance objects."
<rdar://problem/25243459>
Created attachment 274436 [details] proposed patch.
Created attachment 274437 [details] proposed patch: rebased to ToT.
This patch has passed the JSC and layout tests. The reason the EWS bots are failing to apply the patch is because the CR characters in the ietestcenter tests are making the patcher barf. The patch is ready for a review.
Thanks for the review. Landed in r198447: <http://trac.webkit.org/r198447>.