jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

ICE: Assertion 'lit_ids != NULL' failed in var_to_str

Open ILyoan opened this issue 11 years ago • 3 comments

Jerry version:

Checked revision: 08c618e8 Build: debug.linux

Test case:
f1(function(a1){});

run with --show-opcodes

ILyoan avatar Oct 22 '15 05:10 ILyoan

ICE occurs while printing VARG meta_op of f1 function after prints function expression.

Because vargs_num and seen_vargs are not stacked, the values of it will be corrupted after treating the function expression as first parameter of f1.

ILyoan avatar Oct 22 '15 05:10 ILyoan

Even though there have been no commits related to the issue, @ILyoan's test case somewhat no longer emits an error.

I got another test case that emits the same error, probably the same reason.

var x = {
  foo: function () { throw new TypeError("bar"); }
};

wateret avatar Dec 02 '15 08:12 wateret

Works on current master (91a0514).

LaszloLango avatar Feb 08 '16 09:02 LaszloLango