We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4823f84 commit 0a1b432Copy full SHA for 0a1b432
lib/fizzy/execute.cpp
@@ -58,16 +58,14 @@ inline bool invoke_function(
58
{
59
assert(stack.size() >= num_args);
60
span<const Value> call_args{stack.rend() - num_args, num_args};
61
- stack.drop(num_args);
62
63
const auto ret = func(instance, call_args, depth + 1);
64
- // Bubble up traps
65
if (ret.trapped)
66
- return false;
+ return false; // Bubble up traps
67
68
- // Push back the result
+ stack.drop(num_args);
69
if (ret.has_value)
70
- stack.push(ret.value);
+ stack.push(ret.value); // Push back the result
71
72
return true;
73
}
0 commit comments