File: common.go

package info (click to toggle)
golang-github-dop251-goja 0.0~git20250630.0.58d95d8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,264 kB
  • sloc: javascript: 454; perl: 184; makefile: 6; sh: 1
file content (18 lines) | stat: -rw-r--r-- 334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
Package fast contains code ported from V8 (https://github.com/v8/v8/blob/master/src/numbers/fast-dtoa.cc)

See LICENSE_V8 for the original copyright message and disclaimer.
*/
package fast

import "errors"

var (
	dcheckFailure = errors.New("DCHECK assertion failed")
)

func _DCHECK(f bool) {
	if !f {
		panic(dcheckFailure)
	}
}