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

Method hasOwnPropertyStr

func.go:219–228  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

217}
218
219func (f *funcObject) hasOwnPropertyStr(name unistring.String) bool {
220 if f.baseObject.hasOwnPropertyStr(name) {
221 return true
222 }
223
224 if name == "prototype" {
225 return true
226 }
227 return false
228}
229
230func (f *funcObject) stringKeys(all bool, accum []Value) []Value {
231 if all {

Callers

nothing calls this directly

Calls 1

hasOwnPropertyStrMethod · 0.65

Tested by

no test coverage detected