Skip to content

Commit

Permalink
- fix some tests, error when trying to access bson on some builtin obj
Browse files Browse the repository at this point in the history
  • Loading branch information
agirbal committed Jul 16, 2011
1 parent 25fe57b commit 3a5ebf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripting/engine_v8.cpp
Expand Up @@ -41,8 +41,8 @@ namespace mongo {
*/
static BSONObj* unwrapBSONObj(const Handle<v8::Object>& obj) {
Handle<External> field = Handle<External>::Cast(obj->GetInternalField(0));
// if (field.IsEmpty() || !field->IsExternal())
// return 0;
if (field.IsEmpty() || !field->IsExternal())
return 0;
void* ptr = field->Value();
return (BSONObj*)ptr;
}
Expand Down

0 comments on commit 3a5ebf3

Please sign in to comment.