2 * A class representation of the BSON Symbol type.
6 * @param {string} value the string representing the symbol.
9 function Symbol(value) {
10 if(!(this instanceof Symbol)) return new Symbol(value);
11 this._bsontype = 'Symbol';
16 * Access the wrapped string value.
19 * @return {String} returns the wrapped string.
21 Symbol.prototype.valueOf = function() {
28 Symbol.prototype.toString = function() {
35 Symbol.prototype.inspect = function() {
42 Symbol.prototype.toJSON = function() {
46 module.exports = Symbol;
47 module.exports.Symbol = Symbol;