[PRISM] Fix ISEQ load

This commit is contained in:
Kevin Newton 2024-04-02 10:26:02 -04:00
parent 85e5a99e36
commit 94f7098d1c
2 changed files with 1 additions and 6 deletions

2
iseq.c
View File

@ -1155,7 +1155,7 @@ iseq_load(VALUE data, const rb_iseq_t *parent, VALUE opt)
tmp_loc.end_pos.column = NUM2INT(rb_ary_entry(code_location, 3));
}
if (RTEST(rb_hash_aref(misc, ID2SYM(rb_intern("prism"))))) {
if (SYM2ID(rb_hash_aref(misc, ID2SYM(rb_intern("parser")))) == rb_intern("prism")) {
ISEQ_BODY(iseq)->prism = true;
}

View File

@ -1,5 +0,0 @@
exclude(:test_bug8543, "unknown")
exclude(:test_case_when, "unknown")
exclude(:test_hidden, "unknown")
exclude(:test_kwarg, "unknown")
exclude(:test_splatsplat, "unknown")