Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.8.2, 1.8.3
-
None
-
ALL
Description
I'll preface this by saying I can't figure out how to write a JS repro script since the shell doesn't support a CodeWScope type (SERVER-3391) and I can't figure out how to pass named variables in db.eval().
All that aside, I've attached a simple python script to reproduce although you need pymongo installed or have PYTHONPATH set to it's home.
In 1.8.x and in master (there isn't currently a 1.9.2 tag) the mongod log shows the following error:
Tue Aug 16 10:45:04 [conn26] warning: CodeWScope doesn't transfer to db.eval
Tue Aug 16 10:45:04 [conn26] error in invoke: _funcs1:1 TypeError: Cannot read property 'apply' of undefined
_funcs1 = function()
^
This all works fine with spidermonkey. This came up in PYTHON-274.
Attachments
Issue Links
- is related to
-
PYTHON-274 Test failure: test_system_js (test.test_database.TestDatabase)
-
- Closed
-