1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/ext/v8/script.h
2015-04-04 18:23:23 +00:00

19 lines
488 B
C++

#ifndef RR_SCRIPT
#define RR_SCRIPT
namespace rr {
class Script : public Ref<v8::Script> {
public:
static void Init();
static VALUE Compile(int argc, VALUE argv[], VALUE self);
static VALUE Run(VALUE self, VALUE context);
// static VALUE RunWithTimeout(VALUE self, VALUE timeout);
inline Script(VALUE value) : Ref<v8::Script>(value) {}
inline Script(v8::Isolate* isolate, v8::Handle<v8::Script> script) : Ref<v8::Script>(isolate, script) {}
};
}
#endif