@@ -9,7 +9,7 @@ const Binary = BSON.Binary;
9
9
const Timestamp = BSON . Timestamp ;
10
10
const Long = BSON . Long ;
11
11
const ObjectId = BSON . ObjectId ;
12
- const Symbol = BSON . Symbol ;
12
+ const BSONSymbol = BSON . BSONSymbol ;
13
13
const DBRef = BSON . DBRef ;
14
14
const Decimal128 = BSON . Decimal128 ;
15
15
const Int32 = BSON . Int32 ;
@@ -100,7 +100,7 @@ describe('BSON', function() {
100
100
expect ( _mongodb . Timestamp === Timestamp ) . to . be . ok ;
101
101
expect ( _mongodb . Code === Code ) . to . be . ok ;
102
102
expect ( _mongodb . DBRef === DBRef ) . to . be . ok ;
103
- expect ( _mongodb . Symbol === Symbol ) . to . be . ok ;
103
+ expect ( _mongodb . BSONSymbol === BSONSymbol ) . to . be . ok ;
104
104
expect ( _mongodb . MinKey === MinKey ) . to . be . ok ;
105
105
expect ( _mongodb . MaxKey === MaxKey ) . to . be . ok ;
106
106
expect ( _mongodb . Double === Double ) . to . be . ok ;
@@ -1377,10 +1377,10 @@ describe('BSON', function() {
1377
1377
* @ignore
1378
1378
*/
1379
1379
it ( 'Should Correctly Serialize and Deserialize Symbol' , function ( done ) {
1380
- if ( Symbol != null ) {
1380
+ if ( BSONSymbol != null ) {
1381
1381
// symbols are deprecated, so upgrade to strings... so I'm not sure
1382
1382
// we really need this test anymore...
1383
- //var doc = { b: [new Symbol ('test')] };
1383
+ //var doc = { b: [new BSONSymbol ('test')] };
1384
1384
1385
1385
var doc = { b : [ 'test' ] } ;
1386
1386
var serialized_data = BSON . serialize ( doc ) ;
0 commit comments