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

Method defineOwnPropertyStr

builtin_error.go:74–79  ·  view source on GitHub ↗
(name unistring.String, desc PropertyDescriptor, throw bool)

Source from the content-addressed store, hash-verified

72}
73
74func (e *errorObject) defineOwnPropertyStr(name unistring.String, desc PropertyDescriptor, throw bool) bool {
75 if name == propNameStack {
76 e.addStackProp()
77 }
78 return e.baseObject.defineOwnPropertyStr(name, desc, throw)
79}
80
81func (e *errorObject) hasOwnPropertyStr(name unistring.String) bool {
82 if e.baseObject.hasOwnPropertyStr(name) {

Callers

nothing calls this directly

Calls 2

addStackPropMethod · 0.95
defineOwnPropertyStrMethod · 0.65

Tested by

no test coverage detected