MCPcopy Create free account
hub / github.com/dop251/goja / newTypeError

Function newTypeError

value.go:1176–1183  ·  view source on GitHub ↗
(args ...interface{})

Source from the content-addressed store, hash-verified

1174}
1175
1176func newTypeError(args ...interface{}) typeError {
1177 msg := ""
1178 if len(args) > 0 {
1179 f, _ := args[0].(string)
1180 msg = fmt.Sprintf(f, args[1:]...)
1181 }
1182 return typeError(msg)
1183}
1184
1185func typeErrorResult(throw bool, args ...interface{}) {
1186 if throw {

Callers 9

typeErrorResultFunction · 0.85
unknownStringTypeErrFunction · 0.85
CompareToMethod · 0.85
toMethodFunction · 0.85
getHomeObjectFunction · 0.85
execMethod · 0.85
hasInstanceMethod · 0.85
getPrivateEnvMethod · 0.85
numberToBigIntFunction · 0.85

Calls 1

typeErrorTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…