Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-502

spidermonkey function flags appear to be specified incorrectly

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.3.0
    • Affects Version/s: None
    • Component/s: JavaScript
    • Labels:
      None

      It looks like the way our function callback flags are specified in sm is not correct according to the docs. Our callbacks look like this:

      JSFunctionSpec internal_cursor_functions[] = {

      { "hasNext" , internal_cursor_hasNext , 0 , 0 , JSPROP_READONLY | JSPROP_PERMANENT }

      ,

      { "next" , internal_cursor_next , 0 , 0 , JSPROP_READONLY | JSPROP_PERMANENT }

      ,

      { 0 }

      };

      And according to the docs the JSPROP flags are supposed to be in the fourth field, not the fifth field.
      <https://developer.mozilla.org/En/SpiderMonkey/JSAPI_Reference/JSFunctionSpec>

      I'm happy to work on this myself, just wanted to run it by you first.

            Assignee:
            aaron Aaron Staple
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: