From 8d84693323d3eee5a34a12a21e4e686de8a3d801 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 17 Dec 2014 02:57:51 +0000 Subject: 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 --- iseq.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iseq.c') 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); -- cgit v1.2.3