Check loading built-in binaries

This commit is contained in:
Nobuyoshi Nakada 2023-03-08 12:16:05 +09:00
parent 5889cbd7de
commit 677c3228d0
Notes: git 2023-03-08 04:59:38 +00:00
4 changed files with 14 additions and 8 deletions

View file

@ -48,6 +48,7 @@ rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin
vm->builtin_function_table = table;
vm->builtin_inline_index = 0;
const rb_iseq_t *iseq = rb_iseq_ibf_load_bytes((const char *)bin, size);
ASSUME(iseq); // otherwise an exception should have raised
vm->builtin_function_table = NULL;
// exec