diff options
author | agirbal <antoine@10gen.com> | 2011-04-25 13:33:33 -0700 |
---|---|---|
committer | agirbal <antoine@10gen.com> | 2011-05-02 16:08:40 -0700 |
commit | 52c03d3954fe7bc988a04b05e28882a266f5be0d (patch) | |
tree | 94dad56838d0d3f6b64c93339004dc19cbf40cac /scripting/engine_v8.cpp | |
parent | 7a3a04458403713ee9cda6d4d978ebd5a25c5208 (diff) | |
download | mongo-52c03d3954fe7bc988a04b05e28882a266f5be0d.tar.gz |
switch setObject to lzV8, all tests still pass
Diffstat (limited to 'scripting/engine_v8.cpp')
-rw-r--r-- | scripting/engine_v8.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripting/engine_v8.cpp b/scripting/engine_v8.cpp index ae1007221ef..7f3f5cee5e5 100644 --- a/scripting/engine_v8.cpp +++ b/scripting/engine_v8.cpp @@ -220,6 +220,8 @@ namespace mongo { it->second.Dispose(); ++it; } + lzObjectTemplate.Dispose(); + lzArrayTemplate.Dispose(); } /** @@ -342,7 +344,7 @@ namespace mongo { V8_SIMPLE_HEADER // Set() accepts a ReadOnly parameter, but this just prevents the field itself // from being overwritten and doesn't protect the object stored in 'field'. - _global->Set( getV8Str( field ) , mongoToV8( obj, false, readOnly) ); + _global->Set( getV8Str( field ) , mongoToLZV8( obj, false, readOnly) ); } int V8Scope::type( const char *field ) { |