Bug #12743 ยป 0001-eval_intern.h-make-TH_PUSH_TAG-initialize-rb_vm_tag-.patch
eval_intern.h | ||
---|---|---|
#define TH_PUSH_TAG(th) do { \
|
||
rb_thread_t * const _th = (th); \
|
||
struct rb_vm_tag _tag; \
|
||
_tag.tag = 0; \
|
||
_tag.tag = Qundef; \
|
||
_tag.prev = _th->tag;
|
||
#define TH_POP_TAG() \
|
test/ruby/test_exception.rb | ||
---|---|---|
}
|
||
end
|
||
def test_throw_false
|
||
bugXXXXX = '[ruby-core:XXXXX] [Bug #XXXXX]'
|
||
assert_raise_with_message(UncaughtThrowError, /false/, bugXXXXX) {
|
||
Thread.start {
|
||
throw false
|
||
}.join
|
||
}
|
||
end
|
||
def test_else_no_exception
|
||
begin
|
||
assert(true)
|