mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
no need to hang a reference to the V8 module
This commit is contained in:
parent
01dcb216a6
commit
ae6cac7339
1 changed files with 2 additions and 9 deletions
|
@ -11,21 +11,14 @@
|
|||
#include <stdio.h>
|
||||
|
||||
extern "C" {
|
||||
/**
|
||||
* ruby init method for the extension
|
||||
*/
|
||||
void Init_v8();
|
||||
}
|
||||
|
||||
VALUE rb_mModule;
|
||||
|
||||
extern "C" {
|
||||
void Init_v8() {
|
||||
|
||||
rb_mModule = rb_define_module("V8");
|
||||
|
||||
V8_To = rb_define_module_under(rb_mModule, "To");
|
||||
|
||||
void Init_v8() {
|
||||
V8_To = rb_define_module_under(rb_define_module("V8"), "To");
|
||||
rr_init_cxt();
|
||||
rr_init_str();
|
||||
rr_init_script();
|
||||
|
|
Loading…
Reference in a new issue