[ 
https://issues.apache.org/jira/browse/COUCHDB-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Noah Slater updated COUCHDB-103:
--------------------------------

    Fix Version/s:     (was: 0.11)
                   0.12

> Document sealing no longer works with Mozilla spidermonkey 1.8
> --------------------------------------------------------------
>
>                 Key: COUCHDB-103
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-103
>             Project: CouchDB
>          Issue Type: Bug
>          Components: JavaScript View Server
>    Affects Versions: 0.7.2, 0.8
>         Environment: all
>            Reporter: Damien Katz
>            Assignee: Noah Slater
>             Fix For: 0.12
>
>
> In the spidermonkey engine, we use a built-in function sealing for sealing 
> documents so that map functions of arrays no longer works. Array sealing no 
> longer works with javascript 1.8, meaning our document that contain arrays 
> cannot be sealed. The sealing is meant to prevent map functions from 
> modifying the same document that will be passed to other map functions.
> The (hopefully temporary) fix here is to simply remove the document sealing, 
> and map function placed in the same design document will have to be 
> trustworthy that they don't modify the document (the same document is passed 
> to multiple map functions). Non-trustworthy map functions can be placed in 
> their own design documents, they will be run in isolation.

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

Reply via email to