diff options
-rw-r--r-- | src/mongo/scripting/v8-3.25_db.cpp | 4 | ||||
-rw-r--r-- | src/mongo/scripting/v8_db.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/scripting/v8-3.25_db.cpp b/src/mongo/scripting/v8-3.25_db.cpp index 4cd70b5d967..aaf3c67efe8 100644 --- a/src/mongo/scripting/v8-3.25_db.cpp +++ b/src/mongo/scripting/v8-3.25_db.cpp @@ -843,8 +843,8 @@ namespace mongo { // length property stores the decoded length it->ForceSet(scope->v8StringData("len"), v8::Number::New(scope->getIsolate(), tmpBase64.length()), - v8::PropertyAttribute::ReadOnly); - it->ForceSet(scope->v8StringData("type"), type, v8::PropertyAttribute::ReadOnly); + v8::ReadOnly); + it->ForceSet(scope->v8StringData("type"), type, v8::ReadOnly); it->SetInternalField(0, args[1]); return it; diff --git a/src/mongo/scripting/v8_db.cpp b/src/mongo/scripting/v8_db.cpp index f0defe687eb..c4fe4050551 100644 --- a/src/mongo/scripting/v8_db.cpp +++ b/src/mongo/scripting/v8_db.cpp @@ -884,8 +884,8 @@ namespace mongo { string tmpBase64 = base64::decode(*utf); // length property stores the decoded length it->ForceSet(scope->v8StringData("len"), v8::Number::New(tmpBase64.length()), - v8::PropertyAttribute::ReadOnly); - it->ForceSet(scope->v8StringData("type"), type, v8::PropertyAttribute::ReadOnly); + v8::ReadOnly); + it->ForceSet(scope->v8StringData("type"), type, v8::ReadOnly); it->SetInternalField(0, args[1]); return it; |