Reviewers: jochen,

Message:
PTAL

Description:
Removed GetConstructor from the API

LOG=y

Please review this at https://codereview.chromium.org/438303003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+0, -17 lines):
  M include/v8.h
  M src/api.cc


Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index b1eace3d1f7b60f69642b913ad1bb1dc4a3690d2..f702166cd4d281965f2caba33a616888eb7cb0fb 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2226,12 +2226,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.
    */
   Local<String> GetConstructorName();
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 1c257b3d513b9923fe38c988747bc005ad3e1a7e..bd49c84630b23748a747c13a867ef04d15ad5ee4 100644
--- a/src/api.cc
+++ b/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()",


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to