1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

use new syntax for creating script refs

This commit is contained in:
Charles Lowell 2010-05-22 12:09:16 +03:00
parent 14edf2b0ff
commit 42eb72bbc0

View file

@ -9,7 +9,7 @@ namespace {
VALUE Compile(VALUE self, VALUE source, VALUE source_name) {
Local<String> src(rr_rb2v8(source)->ToString());
Local<String> src_name(rr_rb2v8(source_name)->ToString());
return V8_Ref_Create(self, Script::Compile(src, src_name));
return rr_v8_ref_create(self, Script::Compile(src, src_name));
}
VALUE Run(VALUE self) {