ISeq created with callback is special, translation cannot be applied

This commit is contained in:
Koichi Sasada 2020-06-17 07:18:35 +09:00 committed by Nobuyoshi Nakada
parent 4dba8b4027
commit b06d7c5521
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

2
iseq.c
View File

@ -866,7 +866,7 @@ rb_iseq_new_with_callback(
rb_iseq_compile_callback(iseq, ifunc); rb_iseq_compile_callback(iseq, ifunc);
finish_iseq_build(iseq); finish_iseq_build(iseq);
return iseq_translate(iseq); return iseq;
} }
const rb_iseq_t * const rb_iseq_t *