-
Notifications
You must be signed in to change notification settings - Fork 686
Closed
Labels
bugUndesired behaviourUndesired behaviourparserRelated to the JavaScript parserRelated to the JavaScript parser
Description
JerryScript revision
Build platform
Ubuntu 16.04.6 LTS (Linux 4.15.0-99-generic x86_64)
Build steps
python tools/build.py --profile=es2015-subset --lto=off --compile-flag=-g \
--error-messages=on --debug --compile-flag=-g --strip=off --logging=on \
--compile-flag=-fsanitize=address --stack-limit=15
Test case
var errorMessage = "toStringThrows"
var toStringThrows = {
"foo//bar/baz//foo"
}
try {
var obj = {};
obj[toStringThrows] = 3;
assert(false);
} catch (e) {
assert(e.message == errorMessage);
}
Output
ICE: Assertion 'block_found' failed at /home/JerryScript/jerryscript/jerry-core/parser/js/js-parser-statm.c(parser_parse_try_statement_end):2003.
Error: ERR_FAILED_INTERNAL_ASSERTION
Aborted (core dumped)
Credits: This vulnerability is detected by chong from OWL337.
Metadata
Metadata
Assignees
Labels
bugUndesired behaviourUndesired behaviourparserRelated to the JavaScript parserRelated to the JavaScript parser