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

Method defineOwnPropertyStr

object_dynamic.go:395–400  ·  view source on GitHub ↗
(name unistring.String, desc PropertyDescriptor, throw bool)

Source from the content-addressed store, hash-verified

393}
394
395func (o *dynamicObject) defineOwnPropertyStr(name unistring.String, desc PropertyDescriptor, throw bool) bool {
396 if o.checkDynamicObjectPropertyDescr(name, desc, throw) {
397 return o._set(name.String(), desc.Value, throw)
398 }
399 return false
400}
401
402func (o *dynamicObject) defineOwnPropertyIdx(name valueInt, desc PropertyDescriptor, throw bool) bool {
403 if o.checkDynamicObjectPropertyDescr(name, desc, throw) {

Callers

nothing calls this directly

Calls 3

_setMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected