in v8, can't do a $where with a function() inside of db.eval

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.7.2
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > db.f.count( {$where:function(){return 1;}} );
      1
      > db.eval( "db.f.count( {$where:function(){return 1;}} );" );
      Thu Sep 23 11:08:18 exec error: shell/db.js:380

      { "errmsg" : "compile failed: ", "ok" : 0 }

      throw tojson( res );
      ^

      >

              Assignee:
              Unassigned
              Reporter:
              Aaron Staple (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: