Hi, Sergey,
thanks for the patch! LGTM with a minor comment.
Sergey
<snipped>
+jit.opt.start('hotloop=1') +test:is(test_func(EXPECTED), EXPECTED, 'corect BC_VARG recording')
+ +test:done(true)