Exemple #1
0
void ObjectWrapper::_writeField(BSONObjBuilder* b,
                                Key key,
                                WriteFieldRecursionFrames* frames,
                                BSONObj* originalParent) {
    JS::RootedValue value(_context);
    key.get(_context, frames->top().thisv, &value);

    ValueWriter x(_context, value);
    x.setOriginalBSON(originalParent);

    JSStringWrapper jsstr;

    x.writeThis(b, key.toStringData(_context, &jsstr), frames);
}
Exemple #2
0
 /** \brief create error message.
  *  \param where place where exception has been risen.
  *  \param owner parameter's owner.
  *  \param key   parameter name that is not set.
  */
 ExceptionNoSuchParameter(const Location &where, const Owner &owner, const Key &key):
   Exception(where, cc("no such read-only parameter: '", key.get(),
                       "' for user '", owner.get(), "'") )
 {
 }
Exemple #3
0
void ObjectWrapper::getValue(Key key, JS::MutableHandleValue value) {
    key.get(_context, _object, value);
}