Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62FCA9A27 for ; Wed, 1 Feb 2012 23:46:59 +0000 (UTC) Received: (qmail 30146 invoked by uid 500); 1 Feb 2012 23:46:57 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30091 invoked by uid 500); 1 Feb 2012 23:46:56 -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 30083 invoked by uid 99); 1 Feb 2012 23:46:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 23:46:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2012 23:46:48 +0000 Received: by vcbfo1 with SMTP id fo1so1874976vcb.11 for ; Wed, 01 Feb 2012 15:46:28 -0800 (PST) Received: by 10.52.173.52 with SMTP id bh20mr262963vdc.9.1328139988148; Wed, 01 Feb 2012 15:46:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.17.144 with HTTP; Wed, 1 Feb 2012 15:46:08 -0800 (PST) X-Originating-IP: [68.4.109.196] In-Reply-To: References: From: Mark Hahn Date: Wed, 1 Feb 2012 15:46:08 -0800 Message-ID: Subject: Re: new ReferenceError(options is not defined) To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec51b175534a04904b7efb023 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec51b175534a04904b7efb023 Content-Type: text/plain; charset=ISO-8859-1 I don't have any validation function. On Wed, Feb 1, 2012 at 3:37 PM, Keith Gable wrote: > You pasted respStr = " ... - that part looks like CoffeeScript, and I > assumed it was being spat at you by CouchDB. Rereading clarified that for > me. > > I agree with others that the ReferenceError is being thrown at you from > JavaScript, but I don't know why that is. Does your compiled CoffeeScript > make sense if you read it? Maybe your validation function isn't valid > JavaScript for one reason or another, or maybe it's valid but it's > attempting to initialize options in a way that CouchDB isn't liking. > > --- > Keith Gable > A+ Certified Professional > Network+ Certified Professional > Storage+ Certified Professional > Web Developer > > > > On Wed, Feb 1, 2012 at 5:24 PM, Mark Hahn wrote: > > > What makes you think the error contains coffeescript? > > > > On Wed, Feb 1, 2012 at 3:16 PM, Keith Gable > >wrote: > > > > > Right, but if you're getting an error from CouchDB that contains > > > CoffeeScript, then clearly CouchDB is attempting to execute > CoffeeScript > > as > > > JavaScript, which isn't valid. > > > > > > --- > > > Keith Gable > > > A+ Certified Professional > > > Network+ Certified Professional > > > Storage+ Certified Professional > > > Web Developer > > > > > > > > > > > > On Wed, Feb 1, 2012 at 11:58 AM, Mark Hahn wrote: > > > > > > > And technically, coffeescript isn't part of node. It is just > > javascript > > > > which runs anywhere, like the browser. I even write my couchdb views > > in > > > > coffeescript. Works great. > > > > > > > > Think of it as complex editor macros. > > > > > > > > > > --bcaec51b175534a04904b7efb023--