1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

use the util function as provided

This commit is contained in:
Charles Lowell 2010-05-10 08:13:18 -05:00
parent aa5a5c0bf0
commit 23771c070f
2 changed files with 1 additions and 2 deletions

View file

@ -72,7 +72,7 @@ VALUE v8_cxt_open(VALUE self) {
}
VALUE Racer_Error_Message(TryCatch& exception) {
VALUE msg = V8_Ref_Create(V8_C_Message, exception.Message());
VALUE msg = V8_Wrap_Message(exception.Message());
Local<Value> stack = exception.StackTrace();
if (!stack.IsEmpty()) {
rb_iv_set(msg,"@stack",V82RB(stack));

View file

@ -4,7 +4,6 @@
#include "v8.h"
#include "rr.h"
extern VALUE V8_C_Message;
void rr_init_msg();
VALUE V8_Wrap_Message(v8::Handle<v8::Message> msg);