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

Method getOwnPropStr

object_args.go:19–33  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

17}
18
19func (a *argumentsObject) getOwnPropStr(name unistring.String) Value {
20 if mapped, ok := a.values[name].(*mappedProperty); ok {
21 if mapped.writable && mapped.enumerable && mapped.configurable {
22 return *mapped.v
23 }
24 return &valueProperty{
25 value: *mapped.v,
26 writable: mapped.writable,
27 configurable: mapped.configurable,
28 enumerable: mapped.enumerable,
29 }
30 }
31
32 return a.baseObject.getOwnPropStr(name)
33}
34
35func (a *argumentsObject) init() {
36 a.baseObject.init()

Callers 2

getStrMethod · 0.95
setForeignStrMethod · 0.95

Calls 1

getOwnPropStrMethod · 0.65

Tested by

no test coverage detected