1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
ko1 7d8a415bc2 check break target correctly.
* compile.c (iseq_compile_each0): save target child_iseq in the catch-table
  for break. This iseq is not for continuation, but for search key at
  vm_throw_start().

* vm_insnhelper.c (vm_throw_start): check saved iseq first.

* iseq.h: add comment for it.

* test/ruby/test_iterator.rb (test_ljump): add a test for the issue:
    def call b; b.call; end
    call(Proc.new{break}){} #=> (1) should raise LocalJumpError
    call(Proc.new{break})   #=> (2) shoudd raies LocalJumpError, too.
  but (1) doesn't raise LocalJumpError.

  This issue is reported by Matz.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-06-08 04:13:51 +00:00
..
-ext- thread.c: avoid busy looping on rb_thread_fd_close 2017-06-07 00:32:02 +00:00
base64
benchmark
bigdecimal
cgi Fix strange indentation 2017-05-18 15:13:30 +00:00
coverage suppress_warning 2017-04-25 19:13:26 +00:00
csv Strip punctuation from CSV headers in symbol converter. 2017-05-16 09:32:32 +00:00
date
dbm
digest
drb
dtrace
erb test/erb/test_erb.rb: Fix unused variable warning 2017-05-29 10:22:47 +00:00
etc
excludes
fiddle
fileutils Should call ln_s only when symlink is available 2017-05-15 07:35:26 +00:00
gdbm
io
irb
json
lib test: attempt to reduce failures in assert_cpu_usage_low 2017-06-03 01:04:30 +00:00
logger
matrix
minitest
misc
mkmf
monitor
net test_http.rb: fix r58855 2017-05-24 13:30:54 +00:00
nkf
objspace
open-uri
openssl
optparse
ostruct
pathname
psych
rdoc
readline
resolv
rexml rexml: add close tag check on end of document to StreamParser 2017-06-07 13:01:28 +00:00
rinda
ripper ripper/lexer.rb: nested indented heredoc 2017-05-06 15:14:58 +00:00
rss rss: Accept empty text element as valid element 2017-05-03 12:25:17 +00:00
ruby check break target correctly. 2017-06-08 04:13:51 +00:00
rubygems add information for debugging. 2017-05-15 07:02:33 +00:00
scanf
sdbm
shell
socket test/socket/test_basicsocket.rb (socks): bind explicitly to localhost 2017-05-15 07:33:10 +00:00
stringio
strscan
syslog
testunit
thread test/thread: relax internal implementation check in error message 2017-05-09 19:52:10 +00:00
uri
webrick Import gemspec 2017-04-25 09:23:04 +00:00
win32ole
yaml
zlib zlib.c: no buf_filled in zstream 2017-05-01 02:01:38 +00:00
colors
runner.rb
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_extlibs.rb Revert "test/test_extilibs.rb: do not check the existence of fiddle" 2017-05-16 23:59:01 +00:00
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb prime.rb: remove alias after timeout test 2017-05-20 10:21:44 +00:00
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb Of course, opened file is not able to unlink on Windows 2017-05-19 12:44:46 +00:00
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb