MCPcopy
hub / github.com/gopherjs/gopherjs / Get

Method Get

compiler/natives/src/syscall/js/js.go:207–212  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

205}
206
207func (v Value) Get(p string) Value {
208 if vType := v.Type(); !vType.isObject() {
209 panic(&ValueError{"Value.Get", vType})
210 }
211 return objectToValue(v.internal().Get(p))
212}
213
214func (v Value) Index(i int) Value {
215 if vType := v.Type(); !vType.isObject() {

Callers 10

FieldMethod · 0.95
growMethod · 0.95
extendSliceMethod · 0.95
IndexMethod · 0.95
SetCapMethod · 0.95
SetLenMethod · 0.95
SliceMethod · 0.95
Slice3Method · 0.95
FieldMethod · 0.95
CallMethod · 0.95

Calls 5

TypeMethod · 0.95
internalMethod · 0.95
objectToValueFunction · 0.85
isObjectMethod · 0.80
GetMethod · 0.65

Tested by 1

FieldMethod · 0.76