summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iseq.c5
-rw-r--r--version.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/iseq.c b/iseq.c
index 10cb6b9b5c..4999b8c9e4 100644
--- a/iseq.c
+++ b/iseq.c
@@ -861,9 +861,14 @@ iseqw_s_compile(int argc, VALUE *argv, VALUE self)
case 3: path = argv[--i];
case 2: file = argv[--i];
}
+
if (NIL_P(file)) file = rb_fstring_cstr("<compiled>");
+ if (NIL_P(path)) path = file;
if (NIL_P(line)) line = INT2FIX(1);
+ Check_Type(path, T_STRING);
+ Check_Type(file, T_STRING);
+
return iseqw_new(rb_iseq_compile_with_option(src, file, path, line, 0, opt));
}
diff --git a/version.h b/version.h
index 230c84ead3..ef4ef1e076 100644
--- a/version.h
+++ b/version.h
@@ -1,10 +1,10 @@
#define RUBY_VERSION "2.5.2"
-#define RUBY_RELEASE_DATE "2018-10-01"
-#define RUBY_PATCHLEVEL 91
+#define RUBY_RELEASE_DATE "2018-10-09"
+#define RUBY_PATCHLEVEL 92
#define RUBY_RELEASE_YEAR 2018
#define RUBY_RELEASE_MONTH 10
-#define RUBY_RELEASE_DAY 1
+#define RUBY_RELEASE_DAY 9
#include "ruby/version.h"