@@ -9,7 +9,7 @@ const Binary = BSON.Binary;
99const Timestamp = BSON . Timestamp ;
1010const Long = BSON . Long ;
1111const ObjectId = BSON . ObjectId ;
12- const Symbol = BSON . Symbol ;
12+ const BSONSymbol = BSON . BSONSymbol ;
1313const DBRef = BSON . DBRef ;
1414const Decimal128 = BSON . Decimal128 ;
1515const Int32 = BSON . Int32 ;
@@ -100,7 +100,7 @@ describe('BSON', function() {
100100 expect ( _mongodb . Timestamp === Timestamp ) . to . be . ok ;
101101 expect ( _mongodb . Code === Code ) . to . be . ok ;
102102 expect ( _mongodb . DBRef === DBRef ) . to . be . ok ;
103- expect ( _mongodb . Symbol === Symbol ) . to . be . ok ;
103+ expect ( _mongodb . BSONSymbol === BSONSymbol ) . to . be . ok ;
104104 expect ( _mongodb . MinKey === MinKey ) . to . be . ok ;
105105 expect ( _mongodb . MaxKey === MaxKey ) . to . be . ok ;
106106 expect ( _mongodb . Double === Double ) . to . be . ok ;
@@ -1377,10 +1377,10 @@ describe('BSON', function() {
13771377 * @ignore
13781378 */
13791379 it ( 'Should Correctly Serialize and Deserialize Symbol' , function ( done ) {
1380- if ( Symbol != null ) {
1380+ if ( BSONSymbol != null ) {
13811381 // symbols are deprecated, so upgrade to strings... so I'm not sure
13821382 // we really need this test anymore...
1383- //var doc = { b: [new Symbol ('test')] };
1383+ //var doc = { b: [new BSONSymbol ('test')] };
13841384
13851385 var doc = { b : [ 'test' ] } ;
13861386 var serialized_data = BSON . serialize ( doc ) ;
0 commit comments