mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
17 lines
No EOL
350 B
C++
17 lines
No EOL
350 B
C++
#include "converters.h"
|
|
#include "v8_msg.h"
|
|
#include "v8_ref.h"
|
|
|
|
using namespace v8;
|
|
|
|
VALUE V8_C_Message;
|
|
|
|
VALUE V8_Wrap_Message(Handle<v8::Message> msg) {
|
|
return V8_Ref_Create(V8_C_Message, msg);
|
|
}
|
|
|
|
VALUE v8_Message_Get(VALUE self) {
|
|
Local<Message> message = V8_Ref_Get<Message>(self);
|
|
Local<Value> str = message->Get();
|
|
return V82RB(str);
|
|
} |