couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-646) JSON object hidden from the sandbox for show and list
Date Thu, 18 Feb 2010 20:49:27 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835390#action_12835390
] 

Paul Joseph Davis commented on COUCHDB-646:
-------------------------------------------

I don't see where we allowed the JSON object into the sandbox in 0.10, but even if we did
it wouldn't solve the issue with JSON.stringify(new Date()). The new JSON.stringify relies
on the Date prototype having a toJSON method that is defined in newer Spidermonkey's, but
not in 1.7.

The proper patch to get toJSON(new Date()) working would be to do as Jchris said in an email
somewhere about adding a toJSON function when one doesn't exist. Which sounds ok in theory
but I'm wondering if anyone can predict any issues before I go down that path.

> JSON object hidden from the sandbox for show and list
> -----------------------------------------------------
>
>                 Key: COUCHDB-646
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-646
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: 0.11
>         Environment: CouchDB built from head.  Ubuntu. JavaScript-C 1.7.0 2007-10-03
>            Reporter: Cliff Stanford
>
> Three issues that I think are related so I have opened them as a single ticket.
> TheJSON object defined in main.js appears not to be available any more in show and list.
 I believe it was in a previous release.
> The form object.toJSON() does not seem to be working in show and list.
> var d = new Date(); toJSON(d) returns {} rather than a string.  This also seems to be
affecting views.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message