couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Leeds (JIRA)" <>
Subject [jira] [Resolved] (COUCHDB-103) Document sealing no longer works with Mozilla spidermonkey 1.8
Date Wed, 08 Jun 2011 01:45:58 GMT


Randall Leeds resolved COUCHDB-103.

    Resolution: Not A Problem

I'm not sure if my understanding of the problem is 100% accurate, but it seems from this ticket
like this was a problem in spidermonkey 1.8, with no workaround, but it's fixed in 1.9. If
we can do what we want to in 1.9 I think this is closable as Not A Problem. If you disagree,
please reopen?

> Document sealing no longer works with Mozilla spidermonkey 1.8
> --------------------------------------------------------------
>                 Key: COUCHDB-103
>                 URL:
>             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: 1.2
> 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.
For more information on JIRA, see:

View raw message