diff options
author | Mathias Stearn <mathias@10gen.com> | 2013-11-22 16:24:22 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2013-11-22 16:25:33 -0500 |
commit | 0b4202bb531dbdccd87215396ccb3726f55c1421 (patch) | |
tree | e64d2a56448c29a3e5f246d8d6fdb46961c8d00a /src/mongo/scripting | |
parent | 8e3635dad80633495b0be44edd6cd782921aff4c (diff) | |
download | mongo-0b4202bb531dbdccd87215396ccb3726f55c1421.tar.gz |
SERVER-11781 better fix for V8Scope::objectDeptLimit linker error
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r-- | src/mongo/scripting/engine_v8.cpp | 4 | ||||
-rw-r--r-- | src/mongo/scripting/engine_v8.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/scripting/engine_v8.cpp b/src/mongo/scripting/engine_v8.cpp index 6eba9ce13b6..55f614ac641 100644 --- a/src/mongo/scripting/engine_v8.cpp +++ b/src/mongo/scripting/engine_v8.cpp @@ -28,6 +28,10 @@ using namespace mongoutils; namespace mongo { +#ifndef _MSC_EXTENSIONS + const int V8Scope::objectDepthLimit; +#endif + // Generated symbols for JS files namespace JSFiles { extern const JSFile types; diff --git a/src/mongo/scripting/engine_v8.h b/src/mongo/scripting/engine_v8.h index 477ac3cd8ab..b66db63c3e5 100644 --- a/src/mongo/scripting/engine_v8.h +++ b/src/mongo/scripting/engine_v8.h @@ -341,7 +341,7 @@ namespace mongo { /** * Recursion limit when converting from JS objects to BSON. */ - enum { objectDepthLimit = 500 }; + static const int objectDepthLimit = 500; /** * Attach data to obj such that the data has the same lifetime as the Object obj points to. |