Revision: 4621
Author: [email protected]
Date: Sat May  8 07:45:32 2010
Log: 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]
Review URL: http://codereview.chromium.org/2036006
http://code.google.com/p/v8/source/detail?r=4621

Modified:
 /branches/bleeding_edge/samples/process.cc

=======================================
--- /branches/bleeding_edge/samples/process.cc  Tue Apr 14 07:58:23 2009
+++ /branches/bleeding_edge/samples/process.cc  Sat May  8 07:45:32 2010
@@ -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