mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
FIX: use rb_str_intern for symbol support
This avoids leaking symbols cause rb_inter_str never releases memory.
This commit is contained in:
parent
05c27e8e54
commit
6c7abc4791
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ static VALUE convert_v8_to_ruby(Isolate* isolate, Local<Context> context,
|
|||
rb_enc_find("utf-8")
|
||||
);
|
||||
|
||||
return ID2SYM(rb_intern_str(str_symbol));
|
||||
return rb_str_intern(str_symbol);
|
||||
}
|
||||
|
||||
MaybeLocal<String> rstr_maybe = value->ToString(context);
|
||||
|
|
Loading…
Add table
Reference in a new issue