From 4c628ec1bc1bfa85d4d07f659547242be40753a3 Mon Sep 17 00:00:00 2001 From: "ager@chromium.org" Date: Sat, 8 May 2010 14:45:32 +0000 Subject: [PATCH] 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. TBR=ricow@chromium.org Review URL: http://codereview.chromium.org/2036006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4621 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- samples/process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/process.cc b/samples/process.cc index 511e21a03d..9233c0dfa2 100644 --- a/samples/process.cc +++ b/samples/process.cc @@ -294,7 +294,7 @@ Handle JsHttpRequestProcessor::WrapMap(map* obj) { // 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 raw_template = MakeMapTemplate(); map_template_ = Persistent::New(raw_template); }