Reviewers: Søren Gjesse,

Description:
Add more documentation to Context::New in the API header file.


Please review this at http://codereview.chromium.org/6043005/

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

Affected files:
  M     include/v8.h


Index: include/v8.h
===================================================================
--- include/v8.h        (revision 6126)
+++ include/v8.h        (working copy)
@@ -3076,6 +3076,18 @@
    * Returns a persistent handle to the newly allocated context. This
    * persistent handle has to be disposed when the context is no
    * longer used so the context can be garbage collected.
+   *
+   * \param extensions An optional extension configuration containing
+   * the extensions to be installed in the newly created context.
+   *
+   * \param global_template An optional object template from which the
+   * global object for the newly created context will be created.
+   *
+   * \param global_object An optional global object to be reused for
+   * the newly created context. This global object must have been
+   * created by a previous call to Context::New with the same global
+   * template. The state of the global object will be completely reset
+   * and only object identify will remain.
    */
   static Persistent<Context> New(
       ExtensionConfiguration* extensions = NULL,


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

Reply via email to