summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-10-06 19:05:21 +0200
committerJo-Philipp Wich <jo@mein.io>2020-10-06 20:00:39 +0200
commitc874751224237aaed7509960d14823d9c06e6eb5 (patch)
tree79e3786fb61bb9d918a1f87a8c2d750d920ebe3b /README.md
parent8fb8da605419c427605ca91c67b367c9a4cd0eec (diff)
eval: restore context pointer of first evaluated dot/bracket expression
When an expression such as `foo.bar(a.b, c.d)` is evaluated, the state context pointer will point to `c` while we need `foo` when invoking functions. Since the context pointer is only relevant for function calls and since for function call opcodes, the lhs expression is always the first operand, there is no need to store the context of subsequent ops. Adjust the ut_get_operands() procedure to restore state->ctx to the result of the first evaluated operand. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions