summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine_v8.cpp2
-rw-r--r--scripting/v8_utils.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripting/engine_v8.cpp b/scripting/engine_v8.cpp
index 82213b78c6c..cd186b41c49 100644
--- a/scripting/engine_v8.cpp
+++ b/scripting/engine_v8.cpp
@@ -458,7 +458,7 @@ namespace mongo {
void V8Scope::gc() {
cout << "in gc" << endl;
V8Lock l;
- while( V8::IdleNotification() );
+ while( !V8::IdleNotification() );
}
// ----- db access -----
diff --git a/scripting/v8_utils.cpp b/scripting/v8_utils.cpp
index b4b06d78aae..171ced501c3 100644
--- a/scripting/v8_utils.cpp
+++ b/scripting/v8_utils.cpp
@@ -307,7 +307,7 @@ namespace mongo {
Handle<v8::Value> GCV8(const Arguments& args) {
V8Lock l;
- while( V8::IdleNotification() );
+ while( !V8::IdleNotification() );
return v8::Undefined();
}