summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-10-31 11:34:09 -0400
committerPeter Zhu <[email protected]>2024-10-31 13:52:24 -0400
commit645a0c9ea73dd3a89c3c7f75a64dc7e1760ee936 (patch)
tree05193efeb17b0301dee6c4de28bf56615d471fdb /vm.c
parent843b4f49ee82c572405d466f28d4305e21d6e6c2 (diff)
Remove vm_assert_env
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11970
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 5b1fa5091e..93579e86fe 100644
--- a/vm.c
+++ b/vm.c
@@ -171,7 +171,7 @@ vm_ep_in_heap_p_(const rb_execution_context_t *ec, const VALUE *ep)
if (!UNDEF_P(envval)) {
const rb_env_t *env = (const rb_env_t *)envval;
- VM_ASSERT(vm_assert_env(envval));
+ VM_ASSERT(imemo_type_p(envval, imemo_env));
VM_ASSERT(VM_ENV_FLAGS(ep, VM_ENV_FLAG_ESCAPED));
VM_ASSERT(env->ep == ep);
}