diff --git a/compile.c b/compile.c index 46b8217e7e..4db18eb309 100644 --- a/compile.c +++ b/compile.c @@ -1364,12 +1364,10 @@ iseq_set_exception_local_table(rb_iseq_t *iseq) /* TODO: every id table is same -> share it. * Current problem is iseq_free(). */ - ID id_dollar_bang; ID *ids = (ID *)ALLOC_N(ID, 1); - CONST_ID(id_dollar_bang, "#$!"); iseq->body->local_table_size = 1; - ids[0] = id_dollar_bang; + ids[0] = idERROR_INFO; iseq->body->local_table = ids; return COMPILE_OK; } diff --git a/defs/id.def b/defs/id.def index 91a9768ad6..24ca5d3f9f 100644 --- a/defs/id.def +++ b/defs/id.def @@ -70,6 +70,7 @@ firstline, predefined = __LINE__+1, %[\ $_ LASTLINE $~ BACKREF + $! ERROR_INFO ] # VM ID OP Parser Token