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 #153

Closed kevinadi closed 8 years ago

kevinadi commented 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.

TylerBrock commented 8 years ago

Don't you need to use the new operator for that?

As in var rst = new ReplSetTest({})

kevinadi commented 8 years ago

Sorry I screwed up the pull request, will create a new one. Thanks