Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-2939

Support Design doc functions with identifiers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • JavaScript View Server
    • None

    Description

      I'm assuming its relevant to the JavaScript View Server.

      I've found that babel gives anonymous functions identifiers (names) which are not parsable by couchdb. Its valid js.

      see gist for examples.
      https://gist.github.com/export-mike/322e6c340294113096b6

      I've added a PR to a node lib I'm currently using to fix the problem but I see this as a work around, the change adds a simple replace to remove the function identifier. It would be great if couch db supported {map: function map(){...}} etc as its not going to be removed from babel as it isn't a bug.

      here's the pr if your interested on the cradle module
      https://github.com/flatiron/cradle/pull/306

      Attachments

        Activity

          People

            Unassigned Unassigned
            export-mike mike james
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: