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

Method Call

func.go:284–286  ·  view source on GitHub ↗
(FunctionCall)

Source from the content-addressed store, hash-verified

282}
283
284func (f *classFuncObject) Call(FunctionCall) Value {
285 panic(f.val.runtime.NewTypeError("Class constructor cannot be invoked without 'new'"))
286}
287
288func (f *classFuncObject) assertCallable() (func(FunctionCall) Value, bool) {
289 return f.Call, true

Callers 2

vmCallMethod · 0.95
wrapReflectFuncMethod · 0.45

Calls 1

NewTypeErrorMethod · 0.80

Tested by

no test coverage detected