@@ -26,7 +26,7 @@ suite("Interesting Object properties", function () {
2626 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
2727 assert . strictEqual ( val , "{$constructor}" ) ;
2828 assert . strictEqual ( errs . length , 1 ) ;
29- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
29+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
3030 } ) ;
3131
3232 test ( "empty args with null prototype" , function ( ) {
@@ -60,7 +60,7 @@ suite("Interesting Object properties", function () {
6060 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
6161 assert . strictEqual ( val , "{$hasOwnProperty}" ) ;
6262 assert . strictEqual ( errs . length , 1 ) ;
63- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
63+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
6464 } ) ;
6565
6666 test ( "empty args with null prototype" , function ( ) {
@@ -94,7 +94,7 @@ suite("Interesting Object properties", function () {
9494 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
9595 assert . strictEqual ( val , "{$isPrototypeOf}" ) ;
9696 assert . strictEqual ( errs . length , 1 ) ;
97- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
97+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
9898 } ) ;
9999
100100 test ( "empty args with null prototype" , function ( ) {
@@ -128,7 +128,7 @@ suite("Interesting Object properties", function () {
128128 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
129129 assert . strictEqual ( val , "{$propertyIsEnumerable}" ) ;
130130 assert . strictEqual ( errs . length , 1 ) ;
131- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
131+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
132132 } ) ;
133133
134134 test ( "empty args with null prototype" , function ( ) {
@@ -166,7 +166,7 @@ suite("Interesting Object properties", function () {
166166 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
167167 assert . strictEqual ( val , "{$toLocaleString}" ) ;
168168 assert . strictEqual ( errs . length , 1 ) ;
169- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
169+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
170170 } ) ;
171171
172172 test ( "empty args with null prototype" , function ( ) {
@@ -200,7 +200,7 @@ suite("Interesting Object properties", function () {
200200 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
201201 assert . strictEqual ( val , "{$toString}" ) ;
202202 assert . strictEqual ( errs . length , 1 ) ;
203- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
203+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
204204 } ) ;
205205
206206 test ( "empty args with null prototype" , function ( ) {
@@ -234,7 +234,7 @@ suite("Interesting Object properties", function () {
234234 const val = bundle . formatPattern ( msg . value , { } , errs ) ;
235235 assert . strictEqual ( val , "{$valueOf}" ) ;
236236 assert . strictEqual ( errs . length , 1 ) ;
237- assert ( errs [ 0 ] instanceof ReferenceError ) ; // unknown variable
237+ assert ( errs [ 0 ] instanceof TypeError ) ; // variable type not supported
238238 } ) ;
239239
240240 test ( "empty args with null property" , function ( ) {
0 commit comments