summaryrefslogtreecommitdiff
path: root/src/mongo/shell/servers.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/servers.js')
-rwxr-xr-xsrc/mongo/shell/servers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js
index fadc5f4d876..5b0a8a9a026 100755
--- a/src/mongo/shell/servers.js
+++ b/src/mongo/shell/servers.js
@@ -952,7 +952,7 @@ startMongoProgram = function(){
// Enable test commands.
// TODO: Make this work better with multi-version testing so that we can support
// enabling this on 2.4 when testing 2.6
- var args = argumentsToArray( arguments );
+ var args = Array.from(arguments);
args = appendSetParameterArgs(args);
var pid = _startMongoProgram.apply( null, args );
@@ -979,7 +979,7 @@ startMongoProgram = function(){
};
runMongoProgram = function() {
- var args = argumentsToArray( arguments );
+ var args = Array.from(arguments);
args = appendSetParameterArgs(args);
var progName = args[0];
@@ -1005,7 +1005,7 @@ runMongoProgram = function() {
// program name, and subsequent arguments to this function are passed as
// command line arguments to the program. Returns pid of the spawned program.
startMongoProgramNoConnect = function() {
- var args = argumentsToArray( arguments );
+ var args = Array.from(arguments);
args = appendSetParameterArgs(args);
var progName = args[0];