Sha256: 0186094a1587e10821e97a26066392d95f93e1c09691d0c938d23dbf2f4c8d57
Contents?: true
Size: 450 Bytes
Versions: 34
Compression:
Stored size: 450 Bytes
Contents
#include "v8.h" #include "v8_ref.h" #include "v8_script.h" #include "converters.h" using namespace v8; VALUE v8_script_new(VALUE self, VALUE source) { HandleScope handles; Local<String> src = V8_Ref_Get<String>(source); return V8_Ref_Create(self, Script::New(src)); } VALUE v8_script_Run(VALUE self) { HandleScope handles; Local<Script> script = V8_Ref_Get<Script>(self); Local<Value> result = script->Run(); return V82RB(result); }
Version data entries
34 entries across 34 versions & 1 rubygems