summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-17 02:57:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-17 02:57:51 +0000
commit8d84693323d3eee5a34a12a21e4e686de8a3d801 (patch)
treea8f812a1dc3ea77c348d419f420f521c39562984
parentd327d445c8c53247af82eb8ecd77447cf749cd92 (diff)
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
-rw-r--r--iseq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 43f3e8fca3..d2608e81c6 100644
--- a/iseq.c
+++ b/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);