Status: New
Owner: ----

New issue 699 by [email protected]: an error in process.cc ?
http://code.google.com/p/v8/issues/detail?id=699

code in process:

// Utility function that wraps a C++ http request object in a
// JavaScript object.
Handle<Object> JsHttpRequestProcessor::WrapMap(map<string, string>* obj) {
  // Handle scope for temporary handles.
  HandleScope handle_scope;

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

===============================================================
  if (request_template_.IsEmpty())   should be
if (map_template_.IsEmpty())   ?

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

Reply via email to