Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 18165 invoked from network); 25 Mar 2010 13:56:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 13:56:37 -0000 Received: (qmail 56064 invoked by uid 500); 25 Mar 2010 13:49:16 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 55851 invoked by uid 500); 25 Mar 2010 13:49:15 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 55835 invoked by uid 99); 25 Mar 2010 13:49:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 13:49:15 +0000 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yssk22@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 13:49:10 +0000 Received: by vws3 with SMTP id 3so3770884vws.11 for ; Thu, 25 Mar 2010 06:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=MB1HAJKbdpQzDSeavjBvrVtc9LQ/ITv6/re2NWRhDO0=; b=e+sZQKzjDijuQI+7AhP67VfJ+7sgeEJT7N8z34jLTD4tY/Nist0gOt4RQqxCVGnOz9 gYbxym8WoXkufk7yt0sR6eDwR59HToLk4bPpS44GeFtWaDGhPfGBIE6Vns0XYKAf01Sq oOemmFdJd/GMJ00wdYmZUZMWSZ4x+mn4YQamU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=P4ASzeRGa0pkQhMGnBE96ht15kUOFY7pPk1GsLpon+5hBMKbmR8thylVV7fxG6ADB8 hyJ+D3q4CBxcUp3RyQ5JiYpmQiN+W5Z4sgTCntzK4vy6L3ZVWeojh4iwl+czsaBPuXGn z9Ea8qpleC7NqSpnj2xt+sYQLVhjPPu4SiiEo= MIME-Version: 1.0 Received: by 10.220.107.5 with SMTP id z5mr2302799vco.223.1269524927692; Thu, 25 Mar 2010 06:48:47 -0700 (PDT) Date: Thu, 25 Mar 2010 22:48:47 +0900 Message-ID: <717bc8231003250648u21b62f4eqb729c5c3f02a8511@mail.gmail.com> Subject: JavaScript specification changes at 0.11? From: Yohei SASAKI To: dev@couchdb.apache.org Cc: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 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/