bit-hack/nano-script

thread_t::raise_error() incorrect line number

Opened this issue · 1 comments

thread_t::raise_error() will raise an error using the next PC rather then the PC that generated the error. This can cause the reported line number to be incorrect.

In this test case test.length doesnt exist but the error will be reported on line end.

function main()
  var test[3] = 1, 2, 3
  test.length = 1234
end