When the regular expression matching operation is performed using regular expression parameter `/([\w]+)*#/` and string parameter `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`, the execution time exceeds 40 minutes when the following test case is executed. And when I use PHP language to match with the same parameters, I do not find any timeout. Is this an issue of jerry? 

#### version

```
e8ed543
```



#### command

```
jerryscript/build/bin/jerry testcase.js
```



#### testcase

```javascript
var matchTest = function(regex, testString){
     result = String.prototype.match.call(testString, regex);
         if (result !== null){
                return result[0];
         }
        else return "";
};
var regex = /([\w]+)*#/;
var testString ="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var result = matchTest(regex, testString);
print(result);
```
A question about RegExp timeout
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : A question about RegExp timeout
Issue date:

--- start body ---
When the regular expression matching operation is performed using regular expression parameter `/([\w]+)*#/` and string parameter `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa`, the execution time exceeds 40 minutes when the following test case is executed. And when I use PHP language to match with the same parameters, I do not find any timeout. Is this an issue of jerry? 

#### version

```
e8ed543
```



#### command

```
jerryscript/build/bin/jerry testcase.js
```



#### testcase

```javascript
var matchTest = function(regex, testString){
     result = String.prototype.match.call(testString, regex);
         if (result !== null){
                return result[0];
         }
        else return "";
};
var regex = /([\w]+)*#/;
var testString ="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
var result = matchTest(regex, testString);
print(result);
```
--- end body ---
