diff --git a/ext/v8/v8_obj.cpp b/ext/v8/v8_obj.cpp index d26fe1f..729f4cb 100644 --- a/ext/v8/v8_obj.cpp +++ b/ext/v8/v8_obj.cpp @@ -72,11 +72,7 @@ namespace { HandleScope scope; Handle proto = rr_rb2v8(prototype); Local me = unwrap(self); - printf("self: %s", *String::AsciiValue(me->ToString())); - printf("proto: %s", *String::AsciiValue(proto->ToString())); - // unwrap(self)->SetPrototype(); - // return rr_v82rb(unwrap(self)->SetPrototype(rr_rb2v8(prototype))); - return Qnil; + return rr_v82rb(unwrap(self)->SetPrototype(rr_rb2v8(prototype))); } } diff --git a/spec/v8/to_spec.rb b/spec/v8/to_spec.rb deleted file mode 100644 index 167f711..0000000 --- a/spec/v8/to_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require File.dirname(__FILE__) + '/../spec_helper' - -include V8 - -describe V8::To do - - it "can convert into perl case" do - To.perl_case("foo").should == "foo" - To.perl_case("fooBar").should == "foo_bar" - To.perl_case("fooBarBaz").should == "foo_bar_baz" - To.perl_case("XMLDocument").should == "xml_document" - end - -end \ No newline at end of file