

###### JerryScript revision
2faafa4

###### Build platform
Ubuntu 18.04.5 LTS(Linux 4.15.0-119-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  --builddir=$PWD/build
···

###### Test case
···
var count = "0000";
var arr = new Array(10);
function func(val) {
    try { Object.prototype.__defineGetter__(/(?<=^abc)def/);
    } catch(e) {}
    /(?<a>a)/[Symbol.replace] = arr;
    try { arr.concat(arr, new Symbol('1')); } catch(e) {}
}
func(new Proxy(func, []));

···
###### Output
···
ICE: Assertion 'ecma_is_value_string (value)' failed at /root/jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_string_from_value):791.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted

···

Credits: Found by chong from OWL337.
Assertion 'ecma_is_value_string (value)' in ecma_get_string_from_value
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Assertion 'ecma_is_value_string (value)' in ecma_get_string_from_value
Issue date:

--- start body ---


###### JerryScript revision
2faafa4

###### Build platform
Ubuntu 18.04.5 LTS(Linux 4.15.0-119-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  --builddir=$PWD/build
···

###### Test case
···
var count = "0000";
var arr = new Array(10);
function func(val) {
    try { Object.prototype.__defineGetter__(/(?<=^abc)def/);
    } catch(e) {}
    /(?<a>a)/[Symbol.replace] = arr;
    try { arr.concat(arr, new Symbol('1')); } catch(e) {}
}
func(new Proxy(func, []));

···
###### Output
···
ICE: Assertion 'ecma_is_value_string (value)' failed at /root/jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_string_from_value):791.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted

···

Credits: Found by chong from OWL337.
--- end body ---
