You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/09/13 02:27:52 UTC

[GitHub] [couchdb] nickva commented on issue #4175: ES6 in view functions

nickva commented on issue #4175:
URL: https://github.com/apache/couchdb/issues/4175#issuecomment-1244816446

   @diachedelic I think it could be related to the transformation that happens in https://github.com/apache/couchdb/blob/main/share/server/60/rewrite_fun.js
   
   There, we parse the javascript functions into an AST and patch the function to make turn "function(...) {...}" into a proper JS syntax (CouchDB global "function(...) {...}" it turns out are not valid JS). It could be that the parsers we use esprima and escogen don't handle ES6 syntax.  That's just a guess so far, I haven't validated it yet.
   
   A related issue perhaps as well: https://github.com/apache/couchdb/issues/2372


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org