TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

Reverted Fix #13 which interferes with ReplSetTest() command #160

Closed kevinadi closed 8 years ago

kevinadi commented 8 years ago

Trying to run a test replica set by using:

> var rst = new ReplSetTest({nodes:3})
> rst.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. Removing the tojson.caller call fixed the issue.

This is from my earlier pull request, I think it's fixed now. Sorry for the delay in resubmitting.