sub run {
my ($self, $state) = @_;
- $state->resolve_value($state->scope_var($self->var_name));
+ my $var = $state->scope_var($self->var_name);
+ unless ($var->is_bound) {
+ die "Can't materialize unbound ".$self->var_name;
+ }
+ $state->resolve_value($var);
$state->then($self->next);
}