Removed GetConstructor from the API.
Instead either get the "constructor" property stored in the prototype, or keep a side-table. LOG=y R=jochen@chromium.org Review URL: https://codereview.chromium.org/438303003 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22861 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d04a2cbda5
commit
fb7da07a13
@ -2225,12 +2225,6 @@ class V8_EXPORT Object : public Value {
|
||||
*/
|
||||
Local<String> ObjectProtoToString();
|
||||
|
||||
/**
|
||||
* Returns the function invoked as a constructor for this object.
|
||||
* May be the null value.
|
||||
*/
|
||||
Local<Value> GetConstructor();
|
||||
|
||||
/**
|
||||
* Returns the name of the function invoked as a constructor for this object.
|
||||
*/
|
||||
|
11
src/api.cc
11
src/api.cc
@ -3320,17 +3320,6 @@ Local<String> v8::Object::ObjectProtoToString() {
|
||||
}
|
||||
|
||||
|
||||
Local<Value> v8::Object::GetConstructor() {
|
||||
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
||||
ON_BAILOUT(isolate, "v8::Object::GetConstructor()",
|
||||
return Local<v8::Function>());
|
||||
ENTER_V8(isolate);
|
||||
i::Handle<i::JSObject> self = Utils::OpenHandle(this);
|
||||
i::Handle<i::Object> constructor(self->GetConstructor(), isolate);
|
||||
return Utils::ToLocal(constructor);
|
||||
}
|
||||
|
||||
|
||||
Local<String> v8::Object::GetConstructorName() {
|
||||
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
||||
ON_BAILOUT(isolate, "v8::Object::GetConstructorName()",
|
||||
|
Loading…
Reference in New Issue
Block a user