mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.c (iseq_load): allow filepath to be nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6874c8d686
commit
c6896436d8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun May 2 12:04:30 2010 wanabe <s.wanabe@gmail.com>
|
||||
|
||||
* iseq.c (iseq_load): allow filepath to be nil.
|
||||
|
||||
Sun May 2 08:54:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value instead
|
||||
|
|
3
iseq.c
3
iseq.c
|
@ -465,7 +465,8 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt)
|
|||
|
||||
name = CHECK_STRING(rb_ary_entry(data, i++));
|
||||
filename = CHECK_STRING(rb_ary_entry(data, i++));
|
||||
filepath = CHECK_STRING(rb_ary_entry(data, i++));
|
||||
filepath = rb_ary_entry(data, i++);
|
||||
filepath = NIL_P(filepath) ? Qnil : CHECK_STRING(filepath);
|
||||
line_no = CHECK_INTEGER(rb_ary_entry(data, i++));
|
||||
|
||||
type = CHECK_SYMBOL(rb_ary_entry(data, i++));
|
||||
|
|
Loading…
Reference in a new issue