couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (Commented) (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey
Date Fri, 03 Feb 2012 14:13:53 GMT


Paul Joseph Davis commented on COUCHDB-1397:


I reject the premise that there's a distinction to be made between valid JavaScript and valid
"CouchDB programming". At this point I would say that if its not possible to have whatever
we decide pass jslint in a copy/paste manner, then its not valid anything.

Also, the function body thing is the same thing I suggested as an aside except that the wrapping
it in a function part is useless and will lead to more issues than it solves. Also, it has
the same issues that if you did do it, the included code would be executed everytime (ie,
if you pulled in a large helper it would redefine everything again (also note, this is not
the same as compilation)).
> Function expressions, evals in SpiderMonkey
> -------------------------------------------
>                 Key: COUCHDB-1397
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 1.2.1
>         Environment: All
>            Reporter: Jason Smith
> New SpiderMonkey releases do not eval() a sole anonymous function expression. That is
not a valid JavaScript statement, and so it is not a valid JavaScript script.
> COUCHDB-1302 addressed this for 1.1 and the 1.1.x branch. This ticket is for 1.2. (Sorry
to spam COUCHDB-1302. I saw "Unassigned" and read "Unresolved.")

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message