* iseq.c (rb_iseq_compile_with_option): check if src is a strring.
[ruby-core:16453] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
59b08c22b5
commit
11f2fa4ade
@ -1,3 +1,8 @@
|
||||
Mon Apr 21 17:01:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* iseq.c (rb_iseq_compile_with_option): check if src is a strring.
|
||||
[ruby-core:16453]
|
||||
|
||||
Mon Apr 21 16:06:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* enumerator.c (enumerator_init): preserve the method name in ID.
|
||||
|
2
iseq.c
2
iseq.c
@ -438,7 +438,7 @@ VALUE
|
||||
rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)
|
||||
{
|
||||
rb_compile_option_t option;
|
||||
NODE *node = compile_string(src, file, line);
|
||||
NODE *node = compile_string(StringValue(src), file, line);
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
make_compile_option(&option, opt);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user