Revision: 2609
Author: [email protected]
Date: Mon Aug  3 07:31:05 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/v8/source/detail?r=2609

Modified:
  /wiki/DebuggerProtocol.wiki

=======================================
--- /wiki/DebuggerProtocol.wiki Thu Jul 30 07:37:19 2009
+++ /wiki/DebuggerProtocol.wiki Mon Aug  3 07:31:05 2009
@@ -591,22 +591,28 @@
                   ]
  }
  }}}
+
+The difference between the `protoObject` and the `prototypeObject` is that  
the `protoObject` contains a reference to the actual prototype object (for  
which accessibility is not defined in ECMA-262, but in V8 it is accessible  
using the `__proto__` property) whereas the `prototypeObject` is the value  
of the `prototype` property.
+
+Here is an example.

  {{{
   
{"handle":3,"type":"object","className":"Object","constructorFunction":{"ref":4},"protoObject":{"ref":5},"prototypeObject":{"ref":6},"properties":[{"name":"a","ref:7},{"name":"b","ref":8}]}
  }}}

-An function is encoded as an object but with additional information.
+An function is encoded as an object but with additional information in the  
properties `name`, `inferredName`, `source` and `script`.

  {{{
  { "handle" : <handle>,
    "type"                : "function",
    "className"           : "Function",
-  "className"           : <Class name, ECMA-262 property [[Class]]>,
    "constructorFunction" : {"ref":<handle>},
    "protoObject"         : {"ref":<handle>},
    "prototypeObject"     : {"ref":<handle>},
-  "name"                : "function name",
+  "name"                : <function name>,
+  "inferredName"        : <inferred function name for anonymous functions>
+  "source"              : <function source>,
+  "script"              : <reference to function script>,
    "properties" : [ {"name" : <name>,
                      "ref"  : <handle>
                     },

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to