From 23771c070f30d5b32bc53051ed512b28faa93b27 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 10 May 2010 08:13:18 -0500 Subject: [PATCH] use the util function as provided --- ext/v8/v8_cxt.cpp | 2 +- ext/v8/v8_msg.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/v8/v8_cxt.cpp b/ext/v8/v8_cxt.cpp index 82ebef5..ad7a091 100644 --- a/ext/v8/v8_cxt.cpp +++ b/ext/v8/v8_cxt.cpp @@ -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 stack = exception.StackTrace(); if (!stack.IsEmpty()) { rb_iv_set(msg,"@stack",V82RB(stack)); diff --git a/ext/v8/v8_msg.h b/ext/v8/v8_msg.h index 14db3ab..53eceab 100644 --- a/ext/v8/v8_msg.h +++ b/ext/v8/v8_msg.h @@ -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 msg);