github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/compiler/natives/src/math/bits/bits.go (about)

     1  // +build js
     2  
     3  package bits
     4  
     5  type _err string
     6  
     7  func (e _err) Error() string {
     8  	return string(e)
     9  }
    10  
    11  // RuntimeError implements runtime.Error.
    12  func (e _err) RuntimeError() {
    13  }
    14  
    15  var (
    16  	overflowError error = _err("runtime error: integer overflow")
    17  	divideError   error = _err("runtime error: integer divide by zero")
    18  )