Workaround for sporadic v8 illegalaccess regexp bugs