mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
iseq.c: default option
* iseq.c (rb_iseq_new_with_opt): allow NULL option as COMPILE_OPTION_DEFAULT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d327d445c8
commit
8d84693323
1 changed files with 1 additions and 0 deletions
1
iseq.c
1
iseq.c
|
@ -447,6 +447,7 @@ rb_iseq_new_with_opt(NODE *node, VALUE name, VALUE path, VALUE absolute_path,
|
|||
GetISeqPtr(self, iseq);
|
||||
iseq->self = self;
|
||||
|
||||
if (!option) option = &COMPILE_OPTION_DEFAULT;
|
||||
prepare_iseq_build(iseq, name, path, absolute_path, first_lineno, parent,
|
||||
type, option);
|
||||
|
||||
|
|
Loading…
Reference in a new issue