nl_tokens: Public function fetch .
pl_tokens: function fetch ( options ) { var time , promise , resolve , reject ; <mask> = new Date ( ) ; promise = new Promise ( function ( r1 , r2 ) { resolve = r1 ; reject = r2 ; } ) ; try { options = normalise ( options ) ; if ( options . resultIds ) { wpt . getResults ( options , options . resultIds ) . then ( after ) ; } else { wpt . runTests ( options ) . then ( wpt . getResults . bind ( null , options ) ) . then ( after ) ; } } catch ( error ) { reject ( error ) ; } return promise ; function after ( results ) { results = { data : results , options : options , times : { begin : time , end : new Date ( ) } } ; if ( options . dump ) { dump ( options , results ) ; } resolve ( results ) ; } }