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 7cf523c7db * vm_opts.h, iseq.c, iseq.h: add compile option to force frozen
string literals.
  [Feature #11473]
  This addition is not specification change, but to try frozen
  string literal world discussed on [Feature #11473].
  You can try frozen string literal world using this magical line:
    RubyVM::InstructionSequence.compile_option =
      {frozen_string_literal: true}
  Note that this is a global compilation option, so that you need to
  compile another script like that:
    p 'foo'.frozen? #=> false
    RubyVM::InstructionSequence.compile_option =
      {frozen_string_literal: true}
    p 'foo'.frozen? #=> false, because this line is already compiled.
    p eval("'foo'.frozen?") #=> true
  Details:
    * String literals are deduped by rb_fstring().
    * Dynamic string literals ("...#{xyz}...") is now only frozen,
      not deduped. Maybe you have other ideas.
  Now, please do not use this option on your productions :)
  Of course, current specification can be changed.
* compile.c: ditto.
* test/ruby/test_iseq.rb: add a test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-21 20:47:53 +00:00
..
-ext- string.c: fill the terminator 2015-07-25 02:05:34 +00:00
base64
benchmark
bigdecimal test_bigdecimal.rb: adjust 2015-05-27 10:56:33 +00:00
cgi * lib/cgi/cookie.rb: Implement HttpOnly flag for cookies. 2015-05-14 23:27:01 +00:00
coverage
csv * lib/csv.rb: accept to use Range object for row selection. 2015-06-17 01:58:34 +00:00
date
dbm
digest use assert_raise 2015-06-02 02:18:44 +00:00
drb use Timeout.timeout 2015-07-13 10:07:01 +00:00
dtrace
erb * include/ruby/ruby.h: $SAFE=2 is now obsolete. 2015-06-18 14:21:03 +00:00
etc
excludes suppress warning: ambiguous first argument; put parentheses or a space even after `/' operator 2015-06-13 08:42:02 +00:00
fiddle * include/ruby/ruby.h: $SAFE=2 is now obsolete. 2015-06-18 14:21:03 +00:00
fileutils fileutils.rb: fix error message 2015-04-01 00:59:14 +00:00
gdbm
io use Timeout.timeout 2015-07-13 10:07:01 +00:00
irb
json generator.c: allocate structs with wrapper 2015-05-28 07:17:55 +00:00
lib envutil.rb: abort at timeout 2015-08-12 03:50:59 +00:00
logger use assert_raise 2015-06-02 02:18:44 +00:00
matrix test_matrix.rb: Refactor on Matrix#determinant 2015-05-08 13:57:27 +00:00
minitest
misc
mkmf
monitor * lib/monitor.rb (mon_try_enter, mon_enter): should reset @mon_count 2015-05-18 04:56:22 +00:00
net * lib/net/http/response.rb (Net::HTTPResponse::Inflater#finish): 2015-08-01 08:23:32 +00:00
nkf
objspace * ext/objspace/objspace.c: add a new method ObjectSpace.count_symbols. 2015-08-21 11:30:24 +00:00
open-uri use assert_raise 2015-06-02 02:18:44 +00:00
openssl * test/openssl/test_ssl_session.rb: Fix tests so that they take in to 2015-08-20 21:39:54 +00:00
optparse use assert_raise 2015-06-02 02:18:44 +00:00
ostruct
pathname remove unnecessary enumerator requires 2015-07-17 00:59:02 +00:00
psych * ext/psych/*: update to Psych 2.0.14 2015-08-21 17:55:23 +00:00
rdoc parse.y: optional superclass 2015-08-11 02:53:31 +00:00
readline * test/readline/test_readline.rb: Restore environment variables: 2015-03-13 03:29:43 +00:00
resolv use Timeout.timeout 2015-07-13 10:07:01 +00:00
rexml use assert_raise 2015-06-02 02:18:44 +00:00
rinda * test/rinda/test_rinda.rb (RingIPv6#prepare_ipv6): prevent to use 2015-07-24 11:29:49 +00:00
ripper parse.y: refine message for gvar w/o identitirs 2015-05-13 02:13:43 +00:00
rss
ruby * vm_opts.h, iseq.c, iseq.h: add compile option to force frozen 2015-08-21 20:47:53 +00:00
rubygems test/rubygems: clear hooks 2015-08-13 14:43:14 +00:00
scanf
sdbm
shell
socket test/socket/test_nonblock.rb: increase buffer sizes to OpenBSD limits 2015-07-21 08:17:48 +00:00
stringio Simple testing for StringIO#sysread 2015-07-11 21:42:27 +00:00
strscan
syslog
testunit use Timeout.timeout 2015-07-13 10:07:01 +00:00
thread use Timeout.timeout 2015-07-13 10:07:01 +00:00
uri * lib/uri/rfc2396_parser.rb (initialize_pattern): 2015-05-19 02:34:47 +00:00
webrick * test/webrick/test_utils.rb (TestWEBrickUtils#test_nested_timeout_outer): seems 2015-07-22 09:04:57 +00:00
win32ole
xmlrpc use assert_raise 2015-06-02 02:18:44 +00:00
zlib use assert_raise 2015-06-02 02:18:44 +00:00
colors default colors 2015-05-17 00:50:11 +00:00
runner.rb * lib/rake/*: Gemify rake [fix GH-862][Feature #11025] 2015-04-04 12:31:31 +00:00
test_abbrev.rb
test_cmath.rb * test/test_cmath.rb: Adding parens to suppress warnings. 2015-06-13 18:34:13 +00:00
test_delegate.rb
test_find.rb
test_ipaddr.rb use assert_raise 2015-06-02 02:18:44 +00:00
test_mathn.rb
test_mutex_m.rb
test_observer.rb * test/test_observer.rb: add tests for Observable module. 2015-03-26 01:05:18 +00:00
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb test: refine assertions 2015-06-25 05:26:31 +00:00
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb test: refine assertions 2015-06-25 05:26:31 +00:00
test_set.rb * lib/set.rb: Make Set#each and SortedSet#each generate a sized 2015-06-15 05:37:38 +00:00
test_shellwords.rb
test_singleton.rb use assert_raise 2015-06-02 02:18:44 +00:00
test_syslog.rb use assert_raise 2015-06-02 02:18:44 +00:00
test_tempfile.rb test_tempfile.rb: use assert_predicate 2015-05-31 04:45:10 +00:00
test_time.rb
test_timeout.rb use Timeout.timeout 2015-07-13 10:07:01 +00:00
test_tmpdir.rb
test_tracer.rb test: refine assertions 2015-06-25 05:26:31 +00:00
test_tsort.rb
test_unicode_normalize.rb * test/test_unicode_normalize.rb: get rid of a warning. 2015-06-14 00:59:23 +00:00
test_weakref.rb
test_win32api.rb