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

Method checkHandler

proxy.go:294–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292}
293
294func (p *proxyObject) checkHandler() proxyHandler {
295 r := p.val.runtime
296 if handler := p.handler; handler != nil {
297 return handler
298 }
299 panic(r.NewTypeError("Proxy already revoked"))
300}
301
302func (p *proxyObject) proto() *Object {
303 target := p.target

Callers 15

protoMethod · 0.95
setProtoMethod · 0.95
isExtensibleMethod · 0.95
preventExtensionsMethod · 0.95
defineOwnPropertyStrMethod · 0.95
defineOwnPropertyIdxMethod · 0.95
defineOwnPropertySymMethod · 0.95
hasPropertyStrMethod · 0.95
hasPropertyIdxMethod · 0.95
hasPropertySymMethod · 0.95
getOwnPropStrMethod · 0.95
getOwnPropIdxMethod · 0.95

Calls 1

NewTypeErrorMethod · 0.80

Tested by

no test coverage detected