Sha256: 756d3b0f8005ca4fafc35902190072c72629a43a659f6e4cbe41616e9294b1d1
Contents?: true
Size: 1.19 KB
Versions: 37
Compression:
Stored size: 1.19 KB
Contents
#include "rr.h" namespace rr { void Exception::Init() { ModuleBuilder("V8::C"). defineSingletonMethod("ThrowException", &ThrowException); ClassBuilder("Exception"). defineSingletonMethod("RangeError", &RangeError). defineSingletonMethod("ReferenceError", &ReferenceError). defineSingletonMethod("SyntaxError", &SyntaxError). defineSingletonMethod("TypeError", &TypeError). defineSingletonMethod("Error", &Error); } VALUE Exception::ThrowException(VALUE self, VALUE exception) { return Value(v8::ThrowException(Value(exception))); } VALUE Exception::RangeError(VALUE self, VALUE message) { return Value(v8::Exception::RangeError(String(message))); } VALUE Exception::ReferenceError(VALUE self, VALUE message) { return Value(v8::Exception::ReferenceError(String(message))); } VALUE Exception::SyntaxError(VALUE self, VALUE message) { return Value(v8::Exception::SyntaxError(String(message))); } VALUE Exception::TypeError(VALUE self, VALUE message) { return Value(v8::Exception::TypeError(String(message))); } VALUE Exception::Error(VALUE self, VALUE message) { return Value(v8::Exception::Error(String(message))); } }
Version data entries
37 entries across 37 versions & 8 rubygems