@@ -272,7 +272,7 @@ class Bank {
272
272
273
273
exchange (money , to ) {
274
274
if (! (money instanceof Money))
275
- throw new TypeError (` # {money} is not an instance of Money` );
275
+ throw new TypeError (` $ { money} is not an instance of Money` );
276
276
277
277
const toCurrency = Currency .wrap (to);
278
278
if (toCurrency === money .currency ) return money;
@@ -306,7 +306,7 @@ class Money {
306
306
this .value = Number .parseFloat (value);
307
307
this .currency = Currency .wrap (currency);
308
308
if (! (bank instanceof Bank))
309
- throw new TypeError (` # {bank} is not an instance of Bank` );
309
+ throw new TypeError (` $ { bank} is not an instance of Bank` );
310
310
this .bank = bank;
311
311
}
312
312
@@ -339,7 +339,7 @@ class Money {
339
339
this .value = Number .parseFloat (value);
340
340
this .currency = Currency .wrap (currency);
341
341
if (! (bank instanceof Bank))
342
- throw new TypeError (` # {bank} is not an instance of Bank` );
342
+ throw new TypeError (` $ { bank} is not an instance of Bank` );
343
343
this .bank = bank;
344
344
}
345
345
@@ -498,7 +498,7 @@ class Bank {
498
498
499
499
exchange (money , to ) {
500
500
if (! (money instanceof Money))
501
- throw new TypeError (` # {money} is not an instance of Money` );
501
+ throw new TypeError (` $ { money} is not an instance of Money` );
502
502
503
503
const toCurrency = Currency .wrap (to);
504
504
if (toCurrency === money .currency ) return money;
@@ -523,7 +523,7 @@ class Money {
523
523
this .value = Number .parseFloat (value);
524
524
this .currency = Currency .wrap (currency);
525
525
if (! (bank instanceof Bank))
526
- throw new TypeError (` # {bank} is not an instance of Bank` );
526
+ throw new TypeError (` $ { bank} is not an instance of Bank` );
527
527
this .bank = bank;
528
528
}
529
529
0 commit comments