incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yohei SASAKI <yss...@gmail.com>
Subject JavaScript specification changes at 0.11?
Date Thu, 25 Mar 2010 13:48:47 GMT
Hello,

I tried some my snnipets on CouchDB 0.11.0, but several code fails.
One of big issue for me is the following code (which works on 0.10)
does not work on 0.11.

// _design/app/_show/test
function(doc, req){
   this["hello"] = function(){
      return "hello";
   };
   return hello();
}

I use "this" object to register global (show/list function wide)
methods and variables
like as window object on client side javascipt.

I can make workaround for 0.11.0, but I'd like to know this change
is a intended specification change or an bug.

Thanks.

-- 
Yohei SASAKI
http://www.yssk22.info/

Mime
View raw message