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

assigning function that calls another function to a scope variable doesn't work

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.4
    • Affects Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • ALL

      > db.eval( "q = function()

      { print( 1 ); }

      " );
      Thu Jun 24 09:53:19 uncaught exception: {
      "assertion" : "can't append type from:13",
      "errmsg" : "db assertion failure",
      "ok" : 0
      }

      This is a temporary workaround:

      > db.eval( "q = {a:function() { print( 1 ); }}" );
      { "a" : function cf_3f()

      { print(1); }

      }

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: