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

Version Path
therubyracer-0.6.3 ext/v8/v8_script.cpp
therubyracer-0.6.2 ext/v8/v8_script.cpp
therubyracer-0.6.1 ext/v8/v8_script.cpp
therubyracer-0.6.0 ext/v8/v8_script.cpp
therubyracer-0.5.5 ext/v8/v8_script.cpp
therubyracer-0.5.4 ext/v8/v8_script.cpp
therubyracer-0.5.3 ext/v8/v8_script.cpp
therubyracer-0.5.2-x86-darwin-10 ext/v8/v8_script.cpp
therubyracer-0.5.2 ext/v8/v8_script.cpp
therubyracer-0.5.1-x86-darwin-9 ext/v8/v8_script.cpp
therubyracer-0.5.1-x86-darwin-10 ext/v8/v8_script.cpp
therubyracer-0.5.1 ext/v8/v8_script.cpp
therubyracer-0.5.0-x86-darwin-9 ext/v8/v8_script.cpp
therubyracer-0.5.0-x86-linux ext/v8/v8_script.cpp
therubyracer-0.5.0-x86_64-linux ext/v8/v8_script.cpp
therubyracer-0.4.9-x86_64-linux ext/v8/v8_script.cpp
therubyracer-0.5.0-x86-darwin-10 ext/v8/v8_script.cpp
therubyracer-0.5.0 ext/v8/v8_script.cpp
therubyracer-0.4.9-x86-linux ext/v8/v8_script.cpp
therubyracer-0.4.9-x86-darwin-10 ext/v8/v8_script.cpp