File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ describe('map.test.js', function () {
162162 } ) ;
163163
164164 it ( 'should write es6 Map to java.util.Map' , function ( ) {
165+ if ( typeof Map !== 'function' ) {
166+ // pass if not support es6 Map
167+ return ;
168+ }
169+
165170 var map = new Map ( ) ;
166171 map . set ( { '$class' : 'java.lang.Long' , '$' : 123 } , 123456 ) ;
167172 map . set ( { '$class' : 'java.lang.Long' , '$' : 123456 } , 123 ) ;
@@ -349,6 +354,11 @@ describe('map.test.js', function () {
349354 } ) ;
350355
351356 it ( 'should write es6 Map to java.util.Map' , function ( ) {
357+ if ( typeof Map !== 'function' ) {
358+ // pass if not support es6 Map
359+ return ;
360+ }
361+
352362 var map = new Map ( ) ;
353363 map . set ( { '$class' : 'java.lang.Long' , '$' : 123 } , 123456 ) ;
354364 map . set ( { '$class' : 'java.lang.Long' , '$' : 123456 } , 123 ) ;
You can’t perform that action at this time.
0 commit comments