cover_fd_stub.mx raw

   1  //:build moxie.wasm || baremetal
   2  
   3  package runtime
   4  
   5  // coverOutFD has no file to open on wasm or baremetal: counts stay in the table
   6  // and the host reads them through __moxie_cover_counters_ptr. MoxieWrite is a
   7  // stub there, so the dump to fd 2 is a no-op too.
   8  func coverOutFD() (fd int32) {
   9  	return 2
  10  }
  11