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

Method setOwnStr

builtin_error.go:56–61  ·  view source on GitHub ↗
(name unistring.String, val Value, throw bool)

Source from the content-addressed store, hash-verified

54}
55
56func (e *errorObject) setOwnStr(name unistring.String, val Value, throw bool) bool {
57 if name == propNameStack {
58 e.addStackProp()
59 }
60 return e.baseObject.setOwnStr(name, val, throw)
61}
62
63func (e *errorObject) setForeignStr(name unistring.String, val, receiver Value, throw bool) (bool, bool) {
64 return e._setForeignStr(name, e.getOwnPropStr(name), val, receiver, throw)

Callers

nothing calls this directly

Calls 2

addStackPropMethod · 0.95
setOwnStrMethod · 0.65

Tested by

no test coverage detected