Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions machine/instructions/raise_break.hpp
Original file line number Diff line number Diff line change
@@ -9,12 +9,12 @@ namespace rubinius {
return (intptr_t)stack_top();
} else if(state->vm()->scope_valid_p(call_frame->scope->parent())) {
state->vm()->thread_state()->raise_break(stack_top(), call_frame->scope->parent());
return NULL;
return 0;
} else {
Exception* exc = Exception::make_exception(state, G(jump_error), "attempted to break to exited method");
exc->locations(state, Location::from_call_stack(state));
state->raise_exception(exc);
return NULL;
return 0;
}
// TODO: instruction exceptions
// return false;
2 changes: 1 addition & 1 deletion machine/interpreter.cpp
Original file line number Diff line number Diff line change
@@ -205,6 +205,6 @@ namespace rubinius {
}

state->raise_exception(exception);
return NULL;
return 0;
}
}

0 comments on commit cbd1c62

Please sign in to comment.