6c729f6b71e50b986c1a87a73d85281b222bbb91
[aai/esr-gui.git] /
1 var Int32 = function(value) {
2   if(!(this instanceof Int32)) return new Int32(value);
3
4   this._bsontype = 'Int32';
5   this.value = value;
6 }
7
8 /**
9  * Access the number value.
10  *
11  * @method
12  * @return {number} returns the wrapped int32 number.
13  */
14 Int32.prototype.valueOf = function() {
15   return this.value;
16 };
17
18 /**
19  * @ignore
20  */
21 Int32.prototype.toJSON = function() {
22   return this.value;
23 }
24
25 module.exports = Int32;
26 module.exports.Int32 = Int32;