@@ -59,36 +59,36 @@ describe('to_jsstring', () => {
5959describe ( 'to_jsstring fails on invalid unicode' , ( ) => {
6060 test ( "non-utf8 char" , ( ) => {
6161 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 165 ) ) )
62- . toThrowError ( RangeError ) ;
62+ . toThrow ( RangeError ) ;
6363 } ) ;
6464
6565 test ( "invalid continuation byte" , ( ) => {
6666 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 208 , 60 ) ) )
67- . toThrowError ( RangeError ) ;
67+ . toThrow ( RangeError ) ;
6868 } ) ;
6969
7070 test ( "invalid continuation byte" , ( ) => {
7171 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 225 , 60 , 145 ) ) )
72- . toThrowError ( RangeError ) ;
72+ . toThrow ( RangeError ) ;
7373 } ) ;
7474
7575 test ( "invalid continuation byte" , ( ) => {
7676 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 225 , 145 , 60 ) ) )
77- . toThrowError ( RangeError ) ;
77+ . toThrow ( RangeError ) ;
7878 } ) ;
7979
8080 test ( "invalid continuation byte" , ( ) => {
8181 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 242 , 60 , 145 , 145 ) ) )
82- . toThrowError ( RangeError ) ;
82+ . toThrow ( RangeError ) ;
8383 } ) ;
8484
8585 test ( "invalid continuation byte" , ( ) => {
8686 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 242 , 145 , 60 , 145 ) ) )
87- . toThrowError ( RangeError ) ;
87+ . toThrow ( RangeError ) ;
8888 } ) ;
8989
9090 test ( "invalid continuation byte" , ( ) => {
9191 expect ( ( ) => defs . to_jsstring ( defs . luastring_of ( 242 , 145 , 145 , 60 ) ) )
92- . toThrowError ( RangeError ) ;
92+ . toThrow ( RangeError ) ;
9393 } ) ;
9494} ) ;
0 commit comments