Partially revert 2c7d3b3a72

to make imemo_ast WB-protected again. Only the test is kept.
This commit is contained in:
Yusuke Endoh 2021-04-27 15:31:19 +09:00
parent ede2616990
commit e48109d86f
Notes: git 2021-04-27 17:05:46 +09:00
3 changed files with 1 additions and 9 deletions

2
node.c
View file

@ -1299,7 +1299,7 @@ rb_ast_t *
rb_ast_new(void)
{
node_buffer_t *nb = rb_node_buffer_new();
rb_ast_t *ast = rb_imemo_ast_new((VALUE)nb);
rb_ast_t *ast = (rb_ast_t *)rb_imemo_new(imemo_ast, 0, 0, 0, (VALUE)nb);
return ast;
}