Closed kevinadi closed 8 years ago
Trying to run a test replica set by using:
> var r = ReplSetTest({nodes:3}) > r.startSet()
failed with error:
TypeError: access to strict mode caller function is censored
This is because calling .caller method is blocked in the latest version of mongo. This patch should fix the issue.
.caller
mongo
Don't you need to use the new operator for that?
new
As in var rst = new ReplSetTest({})
var rst = new ReplSetTest({})
Sorry I screwed up the pull request, will create a new one. Thanks
Trying to run a test replica set by using:
failed with error:
This is because calling
.caller
method is blocked in the latest version ofmongo
. This patch should fix the issue.