diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-17 02:57:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-17 02:57:51 +0000 |
commit | 8d84693323d3eee5a34a12a21e4e686de8a3d801 (patch) | |
tree | a8f812a1dc3ea77c348d419f420f521c39562984 /iseq.c | |
parent | d327d445c8c53247af82eb8ecd77447cf749cd92 (diff) | |
download | ruby-8d84693323d3eee5a34a12a21e4e686de8a3d801.tar.gz |
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
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |