Closed
Description
JerryScript revision
Commit: 42523bd6
Version: v3.0.0
Build platform
Ubuntu 18.04.5 LTS (Linux 5.4.0-44-generic x86_64)
Build steps
python ./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 --line-info=on --stack-limit=10
Test case
function echo(str) {
console.log(str);
}
function T(p, r, u) {
return Object.assign(p, {
then(onFulfilled, onRejected) {
if (u) {
onFulfilled(r);
} else {
onFulfilled();
}
return Promise.prototype.then.call(this, onFulfilled, onRejected);
}
});
}
function JSEtest(i) {
var ps = [T(Promise.resolve('success'))];
Promise.all(ps).then(res => {
echo(`Test #${i} - Success with '${res}' (length = ${res.length}) (isArray = ${Array.isArray(res)})`);
}).catch(err => {
echo(`Test #${i} - Catch with ${err}`);
});
}
JSEtest(1);
Execution steps & Output
$ ./jerryscript/build/bin/jerry poc.js
ICE: Assertion 'ptr != NULL' failed at /root/jerryscript/jerry-core/ecma/base/ecma-helpers-value.c(ecma_get_pointer_from_ecma_value):115.
Error: ERR_FAILED_INTERNAL_ASSERTION
Metadata
Metadata
Assignees
Labels
No labels