summaryrefslogtreecommitdiff
path: root/db/jsobj.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/jsobj.h')
-rw-r--r--db/jsobj.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/jsobj.h b/db/jsobj.h
index cb4fcd18941..46ba252f43f 100644
--- a/db/jsobj.h
+++ b/db/jsobj.h
@@ -313,6 +313,11 @@ public:
int l;
return JSObj(decouple(l), true);
}
+
+ /* this version, jsobjbuilder still frees the jsobj
+ when the builder goes out of scope. use it this way
+ by default, that's simplest.
+ */
JSObj done() {
return JSObj(_done());
}