summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/mongohelpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/mozjs/mongohelpers.js')
-rw-r--r--src/mongo/scripting/mozjs/mongohelpers.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/mongohelpers.js b/src/mongo/scripting/mozjs/mongohelpers.js
index a59c7787918..c8edfb23ca6 100644
--- a/src/mongo/scripting/mozjs/mongohelpers.js
+++ b/src/mongo/scripting/mozjs/mongohelpers.js
@@ -35,7 +35,6 @@
exportToMongoHelpers = {
// This function accepts an expression or function body and returns a function definition
'functionExpressionParser': function functionExpressionParser(fnSrc) {
-
// Ensure that a provided expression or function body is not terminated with a ';'.
// This ensures we interpret the input as a single expression, rather than a sequence
// of expressions, and can wrap it in parentheses.
@@ -52,7 +51,7 @@ exportToMongoHelpers = {
} else if (e == 'SyntaxError: return not in function') {
return 'function() { ' + fnSrc + ' }';
} else {
- throw(e);
+ throw (e);
}
}
// Input source is a series of expressions. we should prepend the last one with return