mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
expose an actually useful version of Object::SetPrototype
This commit is contained in:
parent
adc0597451
commit
1baf15a9ba
2 changed files with 1 additions and 19 deletions
|
@ -72,11 +72,7 @@ namespace {
|
|||
HandleScope scope;
|
||||
Handle<Value> proto = rr_rb2v8(prototype);
|
||||
Local<Object> 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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue