diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-30 04:44:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-30 04:44:41 +0000 |
commit | 240b7c3c879bb0868ff163c9556ac8755edf5f44 (patch) | |
tree | 0b644900d7f997e76aa2073062febb54fc3f862f | |
parent | 531ceafd3412b45690ee2bb7edbab21e5e5b297b (diff) | |
download | ruby-240b7c3c879bb0868ff163c9556ac8755edf5f44.tar.gz |
vm_eval.c: make dsym
* vm_eval.c (rb_throw, rb_catch): get rid of making static IDs,
use dynamic symbos instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | vm_eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1904,7 +1904,7 @@ rb_throw_obj(VALUE tag, VALUE value) void rb_throw(const char *tag, VALUE val) { - rb_throw_obj(ID2SYM(rb_intern(tag)), val); + rb_throw_obj(rb_sym_intern_ascii_cstr(tag), val); } static VALUE @@ -1981,7 +1981,7 @@ rb_f_catch(int argc, VALUE *argv) VALUE rb_catch(const char *tag, VALUE (*func)(), VALUE data) { - VALUE vtag = tag ? ID2SYM(rb_intern(tag)) : rb_obj_alloc(rb_cObject); + VALUE vtag = tag ? rb_sym_intern_ascii_cstr(tag) : rb_obj_alloc(rb_cObject); return rb_catch_obj(vtag, func, data); } |