###### JerryScript revision
3bcd48f7

###### Build platform
```
Ubuntu 20.04.2 LTS (Linux 5.11.0-25-generic x86_64)
```

###### Build steps
```
./tools/build.py --clean --debug --compile-flag=-fsanitize=address \
--compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \
--compile-flag=-fno-common --compile-flag=-g --strip=off \
--system-allocator=on --logging=on --linker-flag=-fuse-ld=gold \
--error-messages=on --profile=es2015-subset --stack-limit=20
```

###### Test case
```
function fun() {
  var a = f;
  function f() {
    var ret = new a(0);
  }
  f();
}
fun();
```

###### Output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==31424==ERROR: AddressSanitizer: stack-overflow on address 0xff0f5f1c (pc 0x566a1e67 bp 0xff0f6468 sp 0xff0f5f20 T0)
    #0 0x566a1e66 in vm_loop /home/jerryscript/jerry-core/vm/vm.c:1024
    #1 0x566c055e in vm_execute /home/jerryscript/jerry-core/vm/vm.c:5231
    #2 0x566c0bf1 in vm_run /home/jerryscript/jerry-core/vm/vm.c:5338
    #3 0x56621029 in ecma_op_function_call_simple /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1130
    #4 0x566222ee in ecma_op_function_construct /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1572
    #5 0x566a1c87 in opfunc_construct /home/jerryscript/jerry-core/vm/vm.c:884
    ...
    #241 0x566c0601 in vm_execute /home/jerryscript/jerry-core/vm/vm.c:5258
    #242 0x566c0bf1 in vm_run /home/jerryscript/jerry-core/vm/vm.c:5338
    #243 0x56621029 in ecma_op_function_call_simple /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1130
    #244 0x566222ee in ecma_op_function_construct /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1572
    #245 0x566a1c87 in opfunc_construct /home/jerryscript/jerry-core/vm/vm.c:884
    #246 0x566c0601 in vm_execute /home/jerryscript/jerry-core/vm/vm.c:5258

SUMMARY: AddressSanitizer: stack-overflow /home/jerryscript/jerry-core/vm/vm.c:1024 in vm_loop
==31424==ABORTING
```
stack-overflow in vm_loop
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : stack-overflow in vm_loop
Issue date:

--- start body ---
###### JerryScript revision
3bcd48f7

###### Build platform
```
Ubuntu 20.04.2 LTS (Linux 5.11.0-25-generic x86_64)
```

###### Build steps
```
./tools/build.py --clean --debug --compile-flag=-fsanitize=address \
--compile-flag=-m32 --compile-flag=-fno-omit-frame-pointer \
--compile-flag=-fno-common --compile-flag=-g --strip=off \
--system-allocator=on --logging=on --linker-flag=-fuse-ld=gold \
--error-messages=on --profile=es2015-subset --stack-limit=20
```

###### Test case
```
function fun() {
  var a = f;
  function f() {
    var ret = new a(0);
  }
  f();
}
fun();
```

###### Output
```
AddressSanitizer:DEADLYSIGNAL
=================================================================
==31424==ERROR: AddressSanitizer: stack-overflow on address 0xff0f5f1c (pc 0x566a1e67 bp 0xff0f6468 sp 0xff0f5f20 T0)
    #0 0x566a1e66 in vm_loop /home/jerryscript/jerry-core/vm/vm.c:1024
    #1 0x566c055e in vm_execute /home/jerryscript/jerry-core/vm/vm.c:5231
    #2 0x566c0bf1 in vm_run /home/jerryscript/jerry-core/vm/vm.c:5338
    #3 0x56621029 in ecma_op_function_call_simple /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1130
    #4 0x566222ee in ecma_op_function_construct /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1572
    #5 0x566a1c87 in opfunc_construct /home/jerryscript/jerry-core/vm/vm.c:884
    ...
    #241 0x566c0601 in vm_execute /home/jerryscript/jerry-core/vm/vm.c:5258
    #242 0x566c0bf1 in vm_run /home/jerryscript/jerry-core/vm/vm.c:5338
    #243 0x56621029 in ecma_op_function_call_simple /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1130
    #244 0x566222ee in ecma_op_function_construct /home/jerryscript/jerry-core/ecma/operations/ecma-function-object.c:1572
    #245 0x566a1c87 in opfunc_construct /home/jerryscript/jerry-core/vm/vm.c:884
    #246 0x566c0601 in vm_execute /home/jerryscript/jerry-core/vm/vm.c:5258

SUMMARY: AddressSanitizer: stack-overflow /home/jerryscript/jerry-core/vm/vm.c:1024 in vm_loop
==31424==ABORTING
```
--- end body ---
