var foo = function() {
var s = "[0";
for (var i = 0; i < (128 << 10); i++) {
s += "[0-9]";
}
s += "]";
return eval(s);
}
var foo1 = foo();
print(foo1);
There seems to be a lack of memory overflow detection, perhaps similar to circular calls #5039, but ideally dead loops should be detected initially and memory overflow should be caught
Hope jerryscript gets better and better
Looking forward to your reply :)
Version
Version: 3.0.0 ( 1a2c047 )
Execution steps
/root/.jsvu/jerry Testcase.js
Testcase
Output
Expected behavior
Error: Out of stack space
Description
There seems to be a lack of memory overflow detection, perhaps similar to circular calls
#5039, but ideally dead loops should be detected initially and memory overflow should be caught
Hope jerryscript gets better and better
Looking forward to your reply :)