github.com/nuvolaris/goja@v0.0.0-20230825100449-967811910c6d/ftoa/internal/fast/common.go (about)

     1  /*
     2  Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)
     3  
     4  See LICENSE_V8 for the original copyright message and disclaimer.
     5  */
     6  package fast
     7  
     8  import "errors"
     9  
    10  var (
    11  	dcheckFailure = errors.New("DCHECK assertion failed")
    12  )
    13  
    14  func _DCHECK(f bool) {
    15  	if !f {
    16  		panic(dcheckFailure)
    17  	}
    18  }