summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);