Reviewers: Rico,

Description:
Fix typo in process sample. The initialization of the map template is
guarded by an IsEmpty check on the request template instead of the map
template.

[email protected]

Please review this at http://codereview.chromium.org/2036006/show

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

Affected files:
  M     samples/process.cc


Index: samples/process.cc
===================================================================
--- samples/process.cc  (revision 4620)
+++ samples/process.cc  (working copy)
@@ -294,7 +294,7 @@

   // Fetch the template for creating JavaScript map wrappers.
   // It only has to be created once, which we do on demand.
-  if (request_template_.IsEmpty()) {
+  if (map_template_.IsEmpty()) {
     Handle<ObjectTemplate> raw_template = MakeMapTemplate();
     map_template_ = Persistent<ObjectTemplate>::New(raw_template);
   }


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

Reply via email to